[Lada-commits] [PATCH 2 of 2] 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

Wald Commits scm-commit at wald.intevation.org
Thu Apr 16 13:39:15 CEST 2015


# HG changeset patch
# User Dustin Demuth <dustin at intevation.de>
# Date 1429184348 -7200
# Node ID 52c50a5f457b6e5591ef28fb54475eb9efbb4fd2
# Parent  cf898d2cd36211adbcf5483e7e17d578bdcdfa5d
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

diff -r cf898d2cd362 -r 52c50a5f457b app/view/grid/Probenzusatzwert.js
--- 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');
             }
         }, {


More information about the Lada-commits mailing list