[Mpuls-commits] r477 - wasko/trunk/waskaweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Apr 6 09:26:01 CEST 2009


Author: torsten
Date: 2009-04-06 09:26:01 +0200 (Mon, 06 Apr 2009)
New Revision: 477

Modified:
   wasko/trunk/waskaweb/controllers/caselifetime.py
Log:
Small additional fix for issue156


Modified: wasko/trunk/waskaweb/controllers/caselifetime.py
===================================================================
--- wasko/trunk/waskaweb/controllers/caselifetime.py	2009-04-06 07:06:29 UTC (rev 476)
+++ wasko/trunk/waskaweb/controllers/caselifetime.py	2009-04-06 07:26:01 UTC (rev 477)
@@ -99,7 +99,10 @@
 def mark_case(id, mark=None):
     if mark:
         fields = extract_data_from_case(id, ['fn'])
-        fields.data['fn'] += '_%s' % mark
+        if fields.data['fn']:
+            fields.data['fn'] += '_%s' % mark
+        else:
+            fields.data['fn'] = '_%s' % mark
         fields.storeData(id)
 
 



More information about the Mpuls-commits mailing list