[Lada-commits] [PATCH 2 of 2] Check for empty values in ort grid
Wald Commits
scm-commit at wald.intevation.org
Mon Feb 6 11:57:10 CET 2017
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1486378625 -3600
# Node ID da98f0e7c288b8fcab1c3f7b6139bcac15e132d0
# Parent 195c5d9b234b13c38b499667a29ffc1c19d0fb57
Check for empty values in ort grid.
diff -r 195c5d9b234b -r da98f0e7c288 app/view/grid/Orte.js
--- 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');
More information about the Lada-commits
mailing list