diff app/model/Zusatzwert.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 f73ca04d73a7
line wrap: on
line diff
--- a/app/model/Zusatzwert.js	Wed Apr 08 10:50:33 2015 +0200
+++ b/app/model/Zusatzwert.js	Wed Apr 08 10:51:39 2015 +0200
@@ -45,7 +45,21 @@
         },
         defaultValue: new Date()
     }, {
-        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