[Mpuls-commits] r5364 - base/trunk/mpulsweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Sep 16 11:38:42 CEST 2011


Author: ludwig
Date: 2011-09-16 11:38:42 +0200 (Fri, 16 Sep 2011)
New Revision: 5364

Modified:
   base/trunk/mpulsweb/lib/base.py
Log:
Bugfix Issue 967 Reset uncommited fields when a new case is loaded.
The uncommited fields of a different case shouldn't be used for the new loaded 
case.


Modified: base/trunk/mpulsweb/lib/base.py
===================================================================
--- base/trunk/mpulsweb/lib/base.py	2011-09-16 08:29:48 UTC (rev 5363)
+++ base/trunk/mpulsweb/lib/base.py	2011-09-16 09:38:42 UTC (rev 5364)
@@ -132,6 +132,8 @@
             session['navigation.tree'] = navigation
             session['navigation.openfolders'] = open_folders
             session['navigation.selectedpage'] = None 
+            # Also reset uncommited fields, because a new case is loaded.
+            session['uncommited_fields'] = {}
         session.save()
         return case
 



More information about the Mpuls-commits mailing list