[Mpuls-commits] r3173 - base/trunk/mpulsweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Jul 12 15:56:59 CEST 2010


Author: torsten
Date: 2010-07-12 15:56:57 +0200 (Mon, 12 Jul 2010)
New Revision: 3173

Modified:
   base/trunk/mpulsweb/controllers/case.py
Log:
Fixed handling of confirmed value in copy function

Modified: base/trunk/mpulsweb/controllers/case.py
===================================================================
--- base/trunk/mpulsweb/controllers/case.py	2010-07-12 13:53:58 UTC (rev 3172)
+++ base/trunk/mpulsweb/controllers/case.py	2010-07-12 13:56:57 UTC (rev 3173)
@@ -347,11 +347,11 @@
         return self.select(str(case.id))
 
     @checkRole('cm')
-    def copy(self, id, confirmed=0):
+    def copy(self, id, confirmed):
         id = self._checkInt(id)
         confirmed = self._checkBool(confirmed)
         case = self._loadCase(id)
-        if confirmed == 1:
+        if confirmed: 
             case.copy()
             c.dialog_title = COPY_SUCCESS
             c.dialog_text = COPY_SUCCESS_TEXT



More information about the Mpuls-commits mailing list