comparison app/model/Probe.js @ 1238:aaab7ca3c040

An empty string is only one time a valid idAlt.
author Tom Gottfried <tom@intevation.de>
date Tue, 01 Nov 2016 12:49:59 +0100
parents 390dabbf27ed
children 3b4dcc83a21b
comparison
equal deleted inserted replaced
1237:8567d14dfc9d 1238:aaab7ca3c040
18 }, { 18 }, {
19 name: 'owner', 19 name: 'owner',
20 type: 'boolean', 20 type: 'boolean',
21 persist: false 21 persist: false
22 }, { 22 }, {
23 name: 'idAlt' 23 name: 'idAlt',
24 serialize: function(value) {
25 if (value === '') {
26 return null;
27 }
28 return value;
29 }
24 }, { 30 }, {
25 name: 'hauptprobenNr' 31 name: 'hauptprobenNr'
26 }, { 32 }, {
27 name: 'test', 33 name: 'test',
28 type: 'boolean' 34 type: 'boolean'

http://lada.wald.intevation.org