Mercurial > lada > lada-client
comparison app/view/grid/Probenzusatzwert.js @ 723:52c50a5f457b
Fixes an Issue that the wrong Units were shown for a Probenzusatzwert. Now the findRecord operation looks for an exact match of the mehId in the Messeinheiten Store
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Thu, 16 Apr 2015 13:39:08 +0200 |
parents | 7f11b75e0188 |
children | 5ed0e6273888 |
comparison
equal
deleted
inserted
replaced
722:cf898d2cd362 | 723:52c50a5f457b |
---|---|
130 return ''; | 130 return ''; |
131 } | 131 } |
132 var zstore = Ext.data.StoreManager.get('probenzusaetze'); | 132 var zstore = Ext.data.StoreManager.get('probenzusaetze'); |
133 var mstore = Ext.data.StoreManager.get('messeinheiten'); | 133 var mstore = Ext.data.StoreManager.get('messeinheiten'); |
134 var mehId = zstore.getById(value).get('mehId'); | 134 var mehId = zstore.getById(value).get('mehId'); |
135 var record = mstore.findRecord('id', mehId); | 135 var record = mstore.findRecord('id', mehId, 0, false, false, true); |
136 return record.get('einheit'); | 136 return record.get('einheit'); |
137 } | 137 } |
138 }, { | 138 }, { |
139 header: 'rel. Unsich.[%]', | 139 header: 'rel. Unsich.[%]', |
140 dataIndex: 'messfehler', | 140 dataIndex: 'messfehler', |