[Mpuls-commits] r6139 - base/trunk/mpulsweb/controllers
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Mon Nov 12 12:51:29 CET 2012
Author: ludwig
Date: 2012-11-12 12:51:29 +0100 (Mon, 12 Nov 2012)
New Revision: 6139
Modified:
base/trunk/mpulsweb/controllers/case.py
Log:
Bugfix: call case variable only if it is initialized.
Modified: base/trunk/mpulsweb/controllers/case.py
===================================================================
--- base/trunk/mpulsweb/controllers/case.py 2012-11-09 14:26:27 UTC (rev 6138)
+++ base/trunk/mpulsweb/controllers/case.py 2012-11-12 11:51:29 UTC (rev 6139)
@@ -662,6 +662,7 @@
form_result.update(self._add_custom_fields())
# Create a new case
case = self._createCase(form_result)
+ return self.select(str(case.id))
except SetDataException, err:
c.form_result = form_result
c.form_errors = self._convert_SetDataException2Formencode(err)
@@ -680,8 +681,6 @@
auto_insert_errors=False,
errors=c.form_errors)
- return self.select(str(case.id))
-
@checkRole('cm')
def copy(self, id, confirmed):
id = self._checkInt(id)
More information about the Mpuls-commits
mailing list