[Mpuls-commits] r4663 - base/trunk/mpulsweb/model

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Feb 21 10:25:04 CET 2011


Author: torsten
Date: 2011-02-21 10:25:01 +0100 (Mon, 21 Feb 2011)
New Revision: 4663

Modified:
   base/trunk/mpulsweb/model/case.py
Log:
* mpulsweb/model/case.py (MpulsCase.restore): Issue1831: Check if
	privacy option is enabled while restoring the case. Only check
	privacy-statement if option is enabled.


Modified: base/trunk/mpulsweb/model/case.py
===================================================================
--- base/trunk/mpulsweb/model/case.py	2011-02-21 09:18:11 UTC (rev 4662)
+++ base/trunk/mpulsweb/model/case.py	2011-02-21 09:25:01 UTC (rev 4663)
@@ -1011,9 +1011,10 @@
 
     def restore(self):
         #If case has no EE then set EE to undefined on restore
-        ps = self.getPrivacyStatement()
-        if not ps.isSigned():
-            ps.keepUndefined()
+        if g.mpuls_config.is_enabled('case-module', 'privacy'):
+            ps = self.getPrivacyStatement()
+            if not ps.isSigned():
+                ps.keepUndefined()
         self.getState().setState(1)
 
     def formletter(self, id):



More information about the Mpuls-commits mailing list