diff app/view/grid/Orte.js @ 1345:da98f0e7c288

Check for empty values in ort grid.
author Raimund Renkert <raimund.renkert@intevation.de>
date Mon, 06 Feb 2017 11:57:05 +0100
parents 35bbbfbe130c
children 993e542796fd
line wrap: on
line diff
--- a/app/view/grid/Orte.js	Mon Feb 06 11:56:45 2017 +0100
+++ b/app/view/grid/Orte.js	Mon Feb 06 11:57:05 2017 +0100
@@ -148,7 +148,10 @@
                 type: 'string'
             },
             renderer: function(value) {
-                if (!value) {
+                if (value === undefined ||
+                    value === null ||
+                    value === ''
+                ) {
                     return '';
                 }
                 var store = Ext.data.StoreManager.get('verwaltungseinheiten');
@@ -170,7 +173,10 @@
                 type: 'string'
             },
             renderer: function(value) {
-                if (value === undefined || value === '') {
+                if (value === undefined ||
+                    value === null ||
+                    value === ''
+                ) {
                     return '';
                 }
                 var staaten = Ext.data.StoreManager.get('staaten');
@@ -196,7 +202,10 @@
                 valueField: 'id'
             },
             renderer: function(value) {
-                if (value === undefined || value === '') {
+                if (value === undefined ||
+                    value === null ||
+                    value === ''
+                ) {
                     return '';
                 }
                 var kda = Ext.data.StoreManager.get('koordinatenart');

http://lada.wald.intevation.org