[Mpuls-commits] r4051 - base/trunk/mpulsweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Oct 27 19:18:42 CEST 2010
Author: torsten
Date: 2010-10-27 19:18:41 +0200 (Wed, 27 Oct 2010)
New Revision: 4051
Modified:
base/trunk/mpulsweb/controllers/formularpage.py
Log:
* mpulsweb/controllers/formularpage.py (FormularpageController._handle_automatic_phase_change): Call setPhase method of case object to trigger revalidating the phase after setting the phase.
Modified: base/trunk/mpulsweb/controllers/formularpage.py
===================================================================
--- base/trunk/mpulsweb/controllers/formularpage.py 2010-10-27 17:16:44 UTC (rev 4050)
+++ base/trunk/mpulsweb/controllers/formularpage.py 2010-10-27 17:18:41 UTC (rev 4051)
@@ -254,7 +254,7 @@
log.debug("fullautomatic phase change!")
#load case and set phase
case = g.case_factory.loadById(session['case'].id)
- case.getState().setPhase(reachable_phase)
+ case.setPhase(reachable_phase)
# build dialog
c.dialog_title = DIALOG_FULLAUTOMATIC_CHANGE_TITLE
c.dialog_text = h.literal((DIALOG_FULLAUTOMATIC_CHANGE_TEXT
More information about the Mpuls-commits
mailing list