[Mpuls-commits] r2262 - wasko/branches/2.0/mpulsweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Mar 31 12:43:29 CEST 2010


Author: torsten
Date: 2010-03-31 12:43:26 +0200 (Wed, 31 Mar 2010)
New Revision: 2262

Modified:
   wasko/branches/2.0/mpulsweb/lib/search.py
Log:
* mpulsweb/lib/search.py (CaseSearch.get_order): Change default
sorting from "name" to "m.id" as not all cases will have a "name"
field



Modified: wasko/branches/2.0/mpulsweb/lib/search.py
===================================================================
--- wasko/branches/2.0/mpulsweb/lib/search.py	2010-03-30 14:20:29 UTC (rev 2261)
+++ wasko/branches/2.0/mpulsweb/lib/search.py	2010-03-31 10:43:26 UTC (rev 2262)
@@ -110,7 +110,7 @@
         return "TRUE"
 
     def get_order(self, options):
-        sort_field = options.get('sort_field', "name")
+        sort_field = options.get('sort_field', "m.id")
         sort_order = options.get('sort_order', "desc")
         return SEARCH_ORDER % (sort_field, sort_order)
 



More information about the Mpuls-commits mailing list