diff app/model/Messung.js @ 711:af16a257d5f6

Updated the model to have correct tree_modified value and parent_modified fields.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 08 Apr 2015 10:51:39 +0200
parents 0c8e689f3bcb
children 023e622f9551
line wrap: on
line diff
--- a/app/model/Messung.js	Wed Apr 08 10:50:33 2015 +0200
+++ b/app/model/Messung.js	Wed Apr 08 10:51:39 2015 +0200
@@ -57,7 +57,21 @@
     }, {
         name: 'messungsIdAlt'
     }, {
-        name: 'treeModified'
+        name: 'treeModified',
+        serialize: function(value) {
+            if (value === '') {
+                return null;
+            }
+            return value;
+        }
+    }, {
+        name: 'parentModified',
+        serialize: function(value) {
+            if (value === '') {
+                return null;
+            }
+            return value;
+        }
     }],
 
     idProperty: 'id',

http://lada.wald.intevation.org