changeset 1184:be720d0473f6 schema-update

Fixed probezusatzwert grid.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 31 Aug 2016 15:58:19 +0200
parents 287ce20bb1cb
children 90ae675a1224
files app/view/grid/Probenzusatzwert.js
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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');
             }
         }, {

http://lada.wald.intevation.org