[Mpuls-commits] r4708 - base/trunk/mpulsweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Feb 25 14:45:05 CET 2011


Author: torsten
Date: 2011-02-25 14:45:04 +0100 (Fri, 25 Feb 2011)
New Revision: 4708

Modified:
   base/trunk/mpulsweb/lib/search.py
Log:
* mpulsweb/lib/search.py (EvaluationSearch.get_federalstate_clause):
	Fixed federal-state clause


Modified: base/trunk/mpulsweb/lib/search.py
===================================================================
--- base/trunk/mpulsweb/lib/search.py	2011-02-25 10:52:09 UTC (rev 4707)
+++ base/trunk/mpulsweb/lib/search.py	2011-02-25 13:45:04 UTC (rev 4708)
@@ -545,7 +545,7 @@
     def get_federalstate_clause(self, options):
         """Return the search condition to select cases based on federal state."""
         if options.get('federal_state'):
-            return "f.bundesland_id::integer IN ( %s )" % ",".join([str(x) for x in options.get('federal_state')])
+            return "m.fkz::integer in (SELECT id from fkz_tbl where bundesland_id in ( %s ))" % ",".join([str(x) for x in options.get('federal_state')])
         return "TRUE"
 
     def get_fields(self, options):



More information about the Mpuls-commits mailing list