Mercurial > lada > lada-client
changeset 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 | 957a4a9fd260 |
children | 2ff236e5d2d0 |
files | app/view/orte/List.js |
diffstat | 1 files changed, 7 insertions(+), 3 deletions(-) [+] |
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'); }