Mercurial > lada > lada-client
diff app/view/grid/Probenzusatzwert.js @ 1184:be720d0473f6 schema-update
Fixed probezusatzwert grid.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 31 Aug 2016 15:58:19 +0200 |
parents | 5941ee0c7247 |
children | 43f394c10866 |
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'); } }, {