[Mpuls-commits] r4442 - base/trunk/mpulsweb/model

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Dec 28 15:35:05 CET 2010


Author: torsten
Date: 2010-12-28 15:35:04 +0100 (Tue, 28 Dec 2010)
New Revision: 4442

Modified:
   base/trunk/mpulsweb/model/agency.py
Log:
Fixed building agencys from search result.


Modified: base/trunk/mpulsweb/model/agency.py
===================================================================
--- base/trunk/mpulsweb/model/agency.py	2010-12-28 14:34:07 UTC (rev 4441)
+++ base/trunk/mpulsweb/model/agency.py	2010-12-28 14:35:04 UTC (rev 4442)
@@ -142,7 +142,7 @@
         following fields that will be used to instantiate the State
         object: s_id, status, zugriff
         """
-        return self.case_cls(result["fkz"], preset=self._build_preset(result), count=result["count"])
+        return self.case_cls(result["id"], preset=self._build_preset(result), count=result["count"])
 
     def _initNewCase(self, id):
         """Additional initialization of the new case.



More information about the Mpuls-commits mailing list