changeset 1404:9712170c5150 release-2.5

Fix return value for missing value. Deserialising failed with an empty string here, which prevented creating a new Messung in the client.
author Tom Gottfried <tom@intevation.de>
date Mon, 20 Mar 2017 15:20:20 +0100
parents b2dbf3e3f3f7
children 0e081a9badbc
files app/model/Messung.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
         }

http://lada.wald.intevation.org