diff app/view/orte/List.js @ 424:9c44ce52a33c

Fix rendering of the orte list. Some fields was not shown because of wrong loading of ortedetails
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 08 Nov 2013 09:58:54 +0100
parents d1bb925bb5f5
children 683b8a3010cc
line wrap: on
line diff
--- a/app/view/orte/List.js	Wed Oct 09 15:02:06 2013 +0200
+++ b/app/view/orte/List.js	Fri Nov 08 09:58:54 2013 +0100
@@ -37,7 +37,12 @@
         this.columns = [
             {
                 header: 'Typ',
-                dataIndex: 'ortsTyp'
+                dataIndex: 'ortId',
+                renderer: function(value) {
+                    var store = Ext.getStore('Ortedetails');
+                    var record = store.getById(value);
+                    return record.get('otyp');
+                }
             },
             {
                 header: 'Staat',
@@ -66,8 +71,7 @@
                 flex: 1,
                 renderer: function(value) {
                     var store = Ext.getStore('Ortedetails');
-                    var gemeinde = Ext.getStore('Verwaltungseinheiten');
-                    var record = gemeinde.findRecord('gemId', store.getById(value).get('gemId'));
+                    var record = store.getById(value);
                     return record.get('bezeichnung');
                 }
 

http://lada.wald.intevation.org