[Mpuls-commits] r5297 - base/trunk/mpulsweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Sep 2 14:41:47 CEST 2011
Author: roland
Date: 2011-09-02 14:41:47 +0200 (Fri, 02 Sep 2011)
New Revision: 5297
Modified:
base/trunk/mpulsweb/controllers/case.py
Log:
issue2231: check the tags when marking for deletion and restoring cases
Modified: base/trunk/mpulsweb/controllers/case.py
===================================================================
--- base/trunk/mpulsweb/controllers/case.py 2011-09-02 12:34:35 UTC (rev 5296)
+++ base/trunk/mpulsweb/controllers/case.py 2011-09-02 12:41:47 UTC (rev 5297)
@@ -68,6 +68,7 @@
if confirmed == 1:
case = self._loadCase(id)
case.markDelete()
+ case.checkValidity()
c.dialog_title = _("""Case document deleted!""")
c.dialog_text = _("""The case document is given to the administrator for deletion.""")
c.url_ok = h.url_for(controller="/case_overview")
@@ -303,6 +304,7 @@
case = self._loadCase(id)
if confirmed == 1:
case.restore()
+ case.checkValidity()
c.dialog_title = ungettext(u'Case restored!', u'Cases restored!', 1)
c.dialog_text = _(u'Please click OK to continue.')
c.url_ok = h.url_for(controller="/case_overview")
@@ -474,6 +476,7 @@
case = self._loadCase(id)
if confirmed:
case.copy()
+ case.checkValidity()
c.dialog_title = _('Case copied!')
c.dialog_text = _('The case was succussfully copied and is now'
' available in the case overview.'
More information about the Mpuls-commits
mailing list