changeset 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 26e0aec2eb31
children ba106500af0b
files app/view/grid/Ortszuordnung.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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