[Lada-commits] [PATCH] Use 'statusKombi'-attribute to set delete button status

Wald Commits scm-commit at wald.intevation.org
Fri Mar 24 12:03:53 CET 2017


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1490353424 -3600
# Branch release-2.5
# Node ID 0e081a9badbc9a93314419698227bd081032f0fe
# Parent  9712170c5150658444b60ef227ccadacc513f3a8
Use 'statusKombi'-attribute to set delete button status.

diff -r 9712170c5150 -r 0e081a9badbc app/view/grid/Messung.js
--- a/app/view/grid/Messung.js	Mon Mar 20 15:20:20 2017 +0100
+++ b/app/view/grid/Messung.js	Fri Mar 24 12:03:44 2017 +0100
@@ -310,7 +310,7 @@
         var grid = this;
         //only enable the remove buttone, when the grid is editable.
         if (! grid.readOnly &&
-            record.get('statusWert') === 0 &&
+            record.get('statusKombi') === 1 &&
             record.get('owner')) {
             grid.down('button[action=delete]').enable();
         }


More information about the Lada-commits mailing list