changeset 151:a80e84c934a4

Return correct Gemeindebezeichnung
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 02 Jul 2013 10:42:36 +0200
parents 13869814cdb8
children 30aae7295cd0
files app/view/orte/List.js
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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');
                 }
 
             },

http://lada.wald.intevation.org