[Lada-commits] [PATCH 2 of 2] Fix return value for missing value
Wald Commits
scm-commit at wald.intevation.org
Mon Mar 20 15:21:17 CET 2017
# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1490019620 -3600
# Branch release-2.5
# Node ID 9712170c5150658444b60ef227ccadacc513f3a8
# Parent b2dbf3e3f3f795f585327c84ebe7d2311e56af6c
Fix return value for missing value.
Deserialising failed with an empty string here, which prevented
creating a new Messung in the client.
diff -r b2dbf3e3f3f7 -r 9712170c5150 app/model/Messung.js
--- a/app/model/Messung.js Mon Mar 20 14:49:35 2017 +0100
+++ b/app/model/Messung.js Mon Mar 20 15:20:20 2017 +0100
@@ -37,7 +37,7 @@
name: 'messzeitpunkt',
convert: function(v) {
if (!v) {
- return '';
+ return null;
}
return new Date(v);
}
More information about the Lada-commits
mailing list