Mercurial > lada > lada-client
diff app/model/Messwert.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 | f4eb53ba63fc |
line wrap: on
line diff
--- a/app/model/Messwert.js Wed Apr 08 10:50:33 2015 +0200 +++ b/app/model/Messwert.js Wed Apr 08 10:51:39 2015 +0200 @@ -52,7 +52,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',