[Lada-commits] [PATCH 1 of 2] Returned Units od Measurement where not distinct

Wald Commits scm-commit at wald.intevation.org
Mon Apr 20 11:15:49 CEST 2015


# HG changeset patch
# User Dustin Demuth <dustin at intevation.de>
# Date 1429521209 -7200
# Node ID 7ae9599bee39e6ac97cf06d766574e7d5bce3659
# Parent  fca4e738415e71e533e212e89440b7e16c84f42f
Returned Units od Measurement where not distinct

diff -r fca4e738415e -r 7ae9599bee39 app/view/grid/Messwert.js
--- a/app/view/grid/Messwert.js	Fri Apr 17 14:13:28 2015 +0200
+++ b/app/view/grid/Messwert.js	Mon Apr 20 11:13:29 2015 +0200
@@ -75,7 +75,7 @@
                     return '';
                 }
                 var store = Ext.data.StoreManager.get('messgroessen');
-                return store.findRecord('id', value).get('messgroesse');
+                return store.findRecord('id', value, 0, false, false, true).get('messgroesse');
             },
             editor: {
                 xtype: 'combobox',
@@ -106,7 +106,7 @@
                     return '';
                 }
                 var store = Ext.data.StoreManager.get('messeinheiten');
-                return store.findRecord('id', value).get('einheit');
+                return store.findRecord('id', value, 0, false, false, true).get('einheit');
             },
             editor: {
                 xtype: 'combobox',


More information about the Lada-commits mailing list