Mercurial > lada > lada-client
changeset 950:c7bf0b459074
Fixed some issues when the status is null
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Tue, 03 Nov 2015 14:44:01 +0100 |
parents | 6fb23d793caa |
children | 62f0b084fe1f |
files | app/view/form/Messung.js app/view/grid/Messung.js app/view/grid/Status.js |
diffstat | 3 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/app/view/form/Messung.js Mon Nov 02 09:50:41 2015 +0100 +++ b/app/view/form/Messung.js Tue Nov 03 14:44:01 2015 +0100 @@ -155,7 +155,7 @@ function(records, operation, success) { var ret; var i18n = Lada.getApplication().bundle; - if (sStore.getTotalCount() === 0) { + if (sStore.getTotalCount() === 0 || !statusId) { ret = 0; } else {
--- a/app/view/grid/Messung.js Mon Nov 02 09:50:41 2015 +0100 +++ b/app/view/grid/Messung.js Tue Nov 03 14:44:01 2015 +0100 @@ -207,7 +207,7 @@ */ updateStatusColumn: function(sstore, record, success, opts) { var value = 0; - if (sstore.getTotalCount() === 0) { + if (sstore.getTotalCount() === 0 || !opts.statusId) { value = 0; } else {
--- a/app/view/grid/Status.js Mon Nov 02 09:50:41 2015 +0100 +++ b/app/view/grid/Status.js Tue Nov 03 14:44:01 2015 +0100 @@ -93,7 +93,7 @@ header: 'Status', dataIndex: 'statusWert', renderer: function(value) { - if (!value || value === '') { + if (value===null || value === '') { return ''; } return statusStore.getById(value).get('wert');