changeset 1023:3e9ff7786d2c

Do not Copy the StatusWert if it equals 0
author Dustin Demuth <dustin@intevation.de>
date Tue, 09 Feb 2016 09:48:57 +0100
parents 00da72171de3
children 181621463d01 2329acae1705
files app/controller/grid/Status.js
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/app/controller/grid/Status.js	Thu Feb 04 16:17:26 2016 +0100
+++ b/app/controller/grid/Status.js	Tue Feb 09 09:48:57 2016 +0100
@@ -109,6 +109,10 @@
             }
 
             record.set('id', null);
+            if (record.get('statusWert') === 0) {
+                record.set('statusWert', null);
+            }
+
         } else {
             //create a new one
             var record = Ext.create('Lada.model.Status', {

http://lada.wald.intevation.org