[Lada-commits] [PATCH] anlageId can be null

Wald Commits scm-commit at wald.intevation.org
Tue Feb 7 12:49:02 CET 2017


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1486468100 -3600
# Node ID c05a5534f0d9f6eac4d52caa2d4ad2f5ee989db1
# Parent  26e0aec2eb3192eb9f68dd619a058cd9e3168bcf
anlageId can be null.

Rendering of a grid entry failed if this was the case.

diff -r 26e0aec2eb31 -r c05a5534f0d9 app/view/grid/Ortszuordnung.js
--- 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');


More information about the Lada-commits mailing list