[Lada-commits] [PATCH 1 of 2] Empty string is not a valid ozId
Wald Commits
scm-commit at wald.intevation.org
Fri Nov 18 13:27:37 CET 2016
# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1479471912 -3600
# Node ID 2caaaa690e17f8b47d85374705edf04dc6548f6c
# Parent 5db7e8abfd610d2c129e9612f0c2b969fa056e22
Empty string is not a valid ozId.
diff -r 5db7e8abfd61 -r 2caaaa690e17 app/model/Ort.js
--- a/app/model/Ort.js Thu Nov 17 11:11:00 2016 +0100
+++ b/app/model/Ort.js Fri Nov 18 13:25:12 2016 +0100
@@ -31,7 +31,13 @@
}, {
name: 'kdaId'
}, {
- name: 'ozId'
+ name: 'ozId',
+ serialize: function(v) {
+ if (v === '') {
+ return null;
+ }
+ return v;
+ }
}, {
name: 'ortTyp'
}, {
More information about the Lada-commits
mailing list