[Lada-commits] [PATCH] Do not Copy the StatusWert if it equals 0

Wald Commits scm-commit at wald.intevation.org
Tue Feb 9 09:49:07 CET 2016


# HG changeset patch
# User Dustin Demuth <dustin at intevation.de>
# Date 1455007737 -3600
# Node ID 3e9ff7786d2c38d4be1dbdaedefe40c11386dc2c
# Parent  00da72171de30ac6a6b6d0db44a5c202db9665b2
Do not Copy the StatusWert if it equals 0

diff -r 00da72171de3 -r 3e9ff7786d2c app/controller/grid/Status.js
--- 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', {


More information about the Lada-commits mailing list