diff 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
line wrap: on
line diff
--- a/app/view/grid/Ortszuordnung.js	Mon Feb 06 16:47:16 2017 +0100
+++ b/app/view/grid/Ortszuordnung.js	Tue Feb 07 12:48:20 2017 +0100
@@ -146,7 +146,7 @@
             renderer: function(value) {
                 var store = Ext.data.StoreManager.get('orte');
                 var record = store.getById(value);
-                if (!record || record.get('anlageId') === '') {
+                if (!record || !record.get('anlageId')) {
                     return '';
                 }
                 var ktas = Ext.data.StoreManager.get('ktas');

http://lada.wald.intevation.org