diff app/view/orte/List.js @ 151:a80e84c934a4

Return correct Gemeindebezeichnung
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 02 Jul 2013 10:42:36 +0200
parents 26ac4c99f8c4
children 30aae7295cd0
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