comparison app/model/Messung.js @ 1404:9712170c5150 release-2.5

Fix return value for missing value. Deserialising failed with an empty string here, which prevented creating a new Messung in the client.
author Tom Gottfried <tom@intevation.de>
date Mon, 20 Mar 2017 15:20:20 +0100
parents 78839fe4b9b7
children dc90e2997071
comparison
equal deleted inserted replaced
1402:b2dbf3e3f3f7 1404:9712170c5150
35 name: 'messdauer' 35 name: 'messdauer'
36 }, { 36 }, {
37 name: 'messzeitpunkt', 37 name: 'messzeitpunkt',
38 convert: function(v) { 38 convert: function(v) {
39 if (!v) { 39 if (!v) {
40 return ''; 40 return null;
41 } 41 }
42 return new Date(v); 42 return new Date(v);
43 } 43 }
44 }, { 44 }, {
45 name: 'status' 45 name: 'status'

http://lada.wald.intevation.org