comparison app/view/form/Messung.js @ 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 023e622f9551
children b401846e7817
comparison
equal deleted inserted replaced
949:6fb23d793caa 950:c7bf0b459074
153 } 153 }
154 sStore.on('load', 154 sStore.on('load',
155 function(records, operation, success) { 155 function(records, operation, success) {
156 var ret; 156 var ret;
157 var i18n = Lada.getApplication().bundle; 157 var i18n = Lada.getApplication().bundle;
158 if (sStore.getTotalCount() === 0) { 158 if (sStore.getTotalCount() === 0 || !statusId) {
159 ret = 0; 159 ret = 0;
160 } 160 }
161 else { 161 else {
162 ret = sStore.getById(statusId).get('statusWert'); 162 ret = sStore.getById(statusId).get('statusWert');
163 } 163 }

http://lada.wald.intevation.org