Mercurial > lada > lada-client
diff app/model/Ort.js @ 1284:faecbb446a04
Ortserstellung: new Messpunkt from map, clone or form
functional, still needs error handling and layout
author | Maximilian Krambach <mkrambach@intevation.de> |
---|---|
date | Tue, 24 Jan 2017 12:58:26 +0100 |
parents | 2caaaa690e17 |
children | bfdc00c24baf |
line wrap: on
line diff
--- a/app/model/Ort.js Wed Jan 18 16:03:40 2017 +0100 +++ b/app/model/Ort.js Tue Jan 24 12:58:26 2017 +0100 @@ -29,7 +29,13 @@ }, { name: 'staatId' }, { - name: 'kdaId' + name: 'kdaId', + convert: function(v) { + if (v === '') { + return null; + } + return v; + } }, { name: 'ozId', serialize: function(v) { @@ -59,9 +65,21 @@ }, { name: 'hoeheLand' }, { - name: 'koordXExtern' + name: 'koordXExtern', + convert: function(v) { + if (v === '') { + return null; + } + return v; + } }, { - name: 'koordYExtern' + name: 'koordYExtern', + convert: function(v) { + if (v === '') { + return null; + } + return v; + } }, { name: 'longitude', type: 'float'