Fixed Survey Form error giving 505.
authorLennard de Rijk <ljvderijk@gmail.com>
Fri, 03 Jul 2009 14:36:16 +0200
changeset 2503 c14a754b0644
parent 2502 2e096acc8720
child 2504 74b115310fb0
Fixed Survey Form error giving 505. I failed when changing the system to work with collectCleanedFields.
app/soc/views/models/survey.py
--- a/app/soc/views/models/survey.py	Fri Jul 03 14:35:03 2009 +0200
+++ b/app/soc/views/models/survey.py	Fri Jul 03 14:36:16 2009 +0200
@@ -607,7 +607,7 @@
     if not survey_form.is_valid():
       # redirect to takeGet so we can handle errors
       return self.takeGet(request, template, context, params, entity, record,
-                          form_data=properties)
+                          form_data=request.POST)
 
     # retrieve the data from the form
     _, properties = forms_helper.collectCleanedFields(survey_form)