diff app/controller/grid/Status.js @ 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 23bfcbdb4527
children 2329acae1705
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