Bugfix in student view.
This got triggered when a student agreement was set and the create student button was clicked.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- a/app/soc/views/models/student.py Thu Feb 19 17:07:13 2009 +0000
+++ b/app/soc/views/models/student.py Thu Feb 19 18:37:44 2009 +0000
@@ -180,7 +180,7 @@
if not (program and program.student_agreement):
return
- content = entity.scope.student_agreement.content
+ content = program.student_agreement.content
form.fields['student_agreement'].widget.text = content