[Mpuls-commits] r4474 - base/trunk/mpulsweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Jan 7 12:41:45 CET 2011
Author: torsten
Date: 2011-01-07 12:41:44 +0100 (Fri, 07 Jan 2011)
New Revision: 4474
Modified:
base/trunk/mpulsweb/controllers/evaluation_overview.py
Log:
* mpulsweb/controllers/evaluation_overview.py (get_sort): Do not set default search param in controller.
Modified: base/trunk/mpulsweb/controllers/evaluation_overview.py
===================================================================
--- base/trunk/mpulsweb/controllers/evaluation_overview.py 2011-01-07 11:34:11 UTC (rev 4473)
+++ base/trunk/mpulsweb/controllers/evaluation_overview.py 2011-01-07 11:41:44 UTC (rev 4474)
@@ -35,10 +35,8 @@
safed params in session. If session is also empty return default params.
'''
session_options = session['AGENCY_OVERVIEW_SEARCHOPTIONS']
- sort = params.get('sort_field',
- session_options.get('sort_field', 'm.fkz'))
- order = params.get('sort_order',
- session_options.get('sort_order', 'desc'))
+ sort = params.get('sort_field', session_options.get('sort_field'))
+ order = params.get('sort_order', session_options.get('sort_order'))
session_options['sort_field'] = sort
session_options['sort_order'] = order
session.save()
More information about the Mpuls-commits
mailing list