changeset 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 cf898d2cd362
children 876456ce0a01
files app/view/grid/Probenzusatzwert.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/view/grid/Probenzusatzwert.js	Thu Apr 16 11:58:00 2015 +0200
+++ b/app/view/grid/Probenzusatzwert.js	Thu Apr 16 13:39:08 2015 +0200
@@ -132,7 +132,7 @@
                 var zstore = Ext.data.StoreManager.get('probenzusaetze');
                 var mstore = Ext.data.StoreManager.get('messeinheiten');
                 var mehId = zstore.getById(value).get('mehId');
-                var record = mstore.findRecord('id', mehId);
+                var record = mstore.findRecord('id', mehId, 0, false, false, true);
                 return record.get('einheit');
             }
         }, {

http://lada.wald.intevation.org