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

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Fri Apr 20 12:29:07 CEST 2012


Author: ludwig
Date: 2012-04-20 12:29:07 +0200 (Fri, 20 Apr 2012)
New Revision: 5938

Modified:
   base/trunk/mpulsweb/model/case.py
Log:
Issue 2690: Reset standin in case bundle, if no group is selected in set
standin dialog.


Modified: base/trunk/mpulsweb/model/case.py
===================================================================
--- base/trunk/mpulsweb/model/case.py	2012-04-20 09:58:07 UTC (rev 5937)
+++ base/trunk/mpulsweb/model/case.py	2012-04-20 10:29:07 UTC (rev 5938)
@@ -362,10 +362,9 @@
             if case.getEditor().gid in case_group_ids:
                 case_group_ids.remove(case.getEditor().gid)
             try:
-                if case_group_ids:
-                    standin = case.getStandin()
-                    standin.setGroups(case_group_ids)
-                    num += 1
+                standin = case.getStandin()
+                standin.setGroups(case_group_ids)
+                num += 1
             except Exception, e:
                 log.exception(e)
         return num



More information about the Mpuls-commits mailing list