Mercurial > lada > lada-client
changeset 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 | 195c5d9b234b |
children | 8742d020c685 |
files | app/view/grid/Orte.js |
diffstat | 1 files changed, 12 insertions(+), 3 deletions(-) [+] |
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');