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
--- 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'],