[Mpuls-commits] r4296 - jmd/trunk/jmdweb/model
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Dec 1 16:01:59 CET 2010
Author: torsten
Date: 2010-12-01 16:01:57 +0100 (Wed, 01 Dec 2010)
New Revision: 4296
Modified:
jmd/trunk/jmdweb/model/case.py
Log:
* jmdweb/model/case.py (CaseFactory._initNewCase): Issue1421: Set name_jmd to None if ka_name is emtpy in agency-settings.
Modified: jmd/trunk/jmdweb/model/case.py
===================================================================
--- jmd/trunk/jmdweb/model/case.py 2010-12-01 10:47:53 UTC (rev 4295)
+++ jmd/trunk/jmdweb/model/case.py 2010-12-01 15:01:57 UTC (rev 4296)
@@ -78,7 +78,7 @@
fields = {
'vorname': user.first_name,
'nachname': user.last_name,
- 'jmd_name': agency.getName(),
+ 'jmd_name': agency.getName() or None,
'id': int(id)
}
conn = db.getConnection()
More information about the Mpuls-commits
mailing list