Mercurial > lada > lada-client
diff app/model/Probe.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 | 9635f4e60b13 |
children | 9265637fe6c0 |
line wrap: on
line diff
--- a/app/model/Probe.js Wed Apr 08 10:50:33 2015 +0200 +++ b/app/model/Probe.js Wed Apr 08 10:51:39 2015 +0200 @@ -120,7 +120,13 @@ type: 'boolean', persist: false }, { - name: 'treeModified' + name: 'treeModified', + serialize: function(value) { + if (value === '') { + return null; + } + return value; + } }], idProperty: 'id',