Fix broken list_msg that caused 500 errors on many pages that contain list. Also make sure not to display list_msg if it is None.
Patch by: Pawel Solyga
Reviewed by: to-be-reviewed
--- a/app/soc/templates/soc/models/list.html Sat Mar 21 01:07:40 2009 +0000
+++ b/app/soc/templates/soc/models/list.html Sat Mar 21 08:47:25 2009 +0000
@@ -17,7 +17,9 @@
{% block body %}
+{% if list_msg %}
{{ list_msg|safe }}
+{% endif %}
{% if list.empty %}
{{ no_lists_msg }}
--- a/app/soc/views/helper/params.py Sat Mar 21 01:07:40 2009 +0000
+++ b/app/soc/views/helper/params.py Sat Mar 21 08:47:25 2009 +0000
@@ -307,6 +307,7 @@
new_params['edit_dynainclude'] = None
new_params['edit_dynaexclude'] = None
new_params['edit_dynaproperties'] = edit_dynaproperties
+ new_params['list_msg'] = None
params = dicts.merge(params, new_params)