diff app/model/Messung.js @ 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 78839fe4b9b7
children dc90e2997071
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