Fixed a bug where a GMAP error message would be displayed when the form was not valid.
authorLennard de Rijk <ljvderijk@gmail.com>
Tue, 03 Feb 2009 08:25:47 +0000
changeset 1195 cbef45d75942
parent 1194 32a9709e6051
child 1196 11dbdf12d7c2
Fixed a bug where a GMAP error message would be displayed when the form was not valid. The wrong params were used, so the wrong template was used to display the form. This also caused the instruction_text to dissapear. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/views/models/role.py
--- a/app/soc/views/models/role.py	Mon Feb 02 22:58:57 2009 +0000
+++ b/app/soc/views/models/role.py	Tue Feb 03 08:25:47 2009 +0000
@@ -206,7 +206,7 @@
     if not form.is_valid():
       # return the invalid form response
       return self._constructResponse(request, entity=None, context=context,
-          form=form, params=params)
+          form=form, params=request_params)
 
     # collect the cleaned data from the valid form
     key_name, form_fields = soc.views.helper.forms.collectCleanedFields(form)
@@ -494,7 +494,7 @@
     if not form.is_valid():
       # return the invalid form response
       return self._constructResponse(request, entity=None, context=context,
-          form=form, params=params)
+          form=form, params=request_params)
 
     # get the group entity for which this request is via the scope_path
     group = self._logic.getGroupEntityFromScopePath(params['group_logic'],