[Mpuls-commits] r2340 - wasko/branches/2.0/mpulsweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Apr 14 12:47:58 CEST 2010


Author: torsten
Date: 2010-04-14 12:47:58 +0200 (Wed, 14 Apr 2010)
New Revision: 2340

Modified:
   wasko/branches/2.0/mpulsweb/controllers/case.py
Log:
* mpulsweb/controllers/case.py (CaseController.keepActive): Set
	case_id to form_defaults. To be able to save a logbook entry


Modified: wasko/branches/2.0/mpulsweb/controllers/case.py
===================================================================
--- wasko/branches/2.0/mpulsweb/controllers/case.py	2010-04-14 10:35:02 UTC (rev 2339)
+++ wasko/branches/2.0/mpulsweb/controllers/case.py	2010-04-14 10:47:58 UTC (rev 2340)
@@ -353,10 +353,10 @@
         entry.setDate(datetime.now())
         entry.setKind(-2)
         form_defaults = {}
+        form_defaults['case_id'] = id 
         form_defaults['date'] = entry.getDate()
         form_defaults['time'] = entry.getTime()
         form_defaults['kind'] = entry.getKindAsInt()
-        form_defaults['kind'] = entry.getKindAsInt()
         form_defaults['short_notice'] = u"Aufbewahrung verlängert"
         form_defaults['notice'] = (u"Bitte geben Sie hier den Grund für"
                                    u" die Verlängerung der Aufbewahrungsfrist"



More information about the Mpuls-commits mailing list