comparison app/view/grid/Ortszuordnung.js @ 1349:c05a5534f0d9

anlageId can be null. Rendering of a grid entry failed if this was the case.
author Tom Gottfried <tom@intevation.de>
date Tue, 07 Feb 2017 12:48:20 +0100
parents 8742d020c685
children 036c594de978
comparison
equal deleted inserted replaced
1348:26e0aec2eb31 1349:c05a5534f0d9
144 dataIndex: 'ortId', 144 dataIndex: 'ortId',
145 flex: 3, 145 flex: 3,
146 renderer: function(value) { 146 renderer: function(value) {
147 var store = Ext.data.StoreManager.get('orte'); 147 var store = Ext.data.StoreManager.get('orte');
148 var record = store.getById(value); 148 var record = store.getById(value);
149 if (!record || record.get('anlageId') === '') { 149 if (!record || !record.get('anlageId')) {
150 return ''; 150 return '';
151 } 151 }
152 var ktas = Ext.data.StoreManager.get('ktas'); 152 var ktas = Ext.data.StoreManager.get('ktas');
153 var kta = ktas.getById(record.get('anlageId')); 153 var kta = ktas.getById(record.get('anlageId'));
154 return kta.get('code'); 154 return kta.get('code');

http://lada.wald.intevation.org