[Lada-commits] [PATCH 1 of 7] Fix rendering of the orte list. Some fields was not shown because of wrong

Wald Commits scm-commit at wald.intevation.org
Fri Nov 8 12:48:32 CET 2013


# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1383901134 -3600
# Node ID 9c44ce52a33c22f6aee8f8af0c30e0621f2273a4
# Parent  957a4a9fd260e6b78736a95677cdebd5bf256eec
Fix rendering of the orte list. Some fields was not shown because of wrong
loading of ortedetails

diff -r 957a4a9fd260 -r 9c44ce52a33c app/view/orte/List.js
--- 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');
                 }
 


More information about the Lada-commits mailing list