[Lada-commits] [PATCH 4 of 7] Fixed probezusatzwert grid

Wald Commits scm-commit at wald.intevation.org
Wed Aug 31 16:25:06 CEST 2016


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1472651899 -7200
# Branch schema-update
# Node ID be720d0473f65e055c85eccaf8bdc5b7c369f9d3
# Parent  287ce20bb1cbd7f64d0199ddd3dcffc3a4c3395c
Fixed probezusatzwert grid.

diff -r 287ce20bb1cb -r be720d0473f6 app/view/grid/Probenzusatzwert.js
--- a/app/view/grid/Probenzusatzwert.js	Wed Aug 31 15:57:49 2016 +0200
+++ b/app/view/grid/Probenzusatzwert.js	Wed Aug 31 15:58:19 2016 +0200
@@ -122,7 +122,6 @@
         }, {
             header: 'Nachweisgrenze',
             dataIndex: 'nwgZuMesswert',
-            xtype: 'numbercolumn',
             flex: 1,
             editor: {
                 xtype: 'expnumberfield',
@@ -150,8 +149,11 @@
                 }
                 var zstore = Ext.data.StoreManager.get('probenzusaetze');
                 var mstore = Ext.data.StoreManager.get('messeinheiten');
-                var mehId = zstore.getById(value).get('mehId');
+                var mehId = zstore.getById(value).get('messEinheitId');
                 var record = mstore.findRecord('id', mehId, 0, false, false, true);
+                if (!record) {
+                    return '';
+                }
                 return record.get('einheit');
             }
         }, {


More information about the Lada-commits mailing list