[Lada-commits] [PATCH 2 of 3] Return correct Gemeindebezeichnung

Wald Commits scm-commit at wald.intevation.org
Tue Jul 2 10:46:13 CEST 2013


# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1372754556 -7200
# Node ID a80e84c934a4445f5ea6e6127c2e14c083c86937
# Parent  13869814cdb85804fc719294dbfded5685659db4
Return correct Gemeindebezeichnung

diff -r 13869814cdb8 -r a80e84c934a4 app/view/orte/List.js
--- a/app/view/orte/List.js	Tue Jul 02 09:57:02 2013 +0200
+++ b/app/view/orte/List.js	Tue Jul 02 10:42:36 2013 +0200
@@ -63,8 +63,9 @@
                 flex: 1,
                 renderer: function(value) {
                     var store = Ext.getStore('Ortedetails');
-                    var record = store.getById(value);
-                    return record.get('beschreibung');
+                    var gemeinde = Ext.getStore('Verwaltungseinheiten');
+                    var record = gemeinde.findRecord('gemId', store.getById(value).get('gemId'));
+                    return record.get('bezeichnung');
                 }
 
             },


More information about the Lada-commits mailing list