Mercurial > lada > lada-client
comparison app/view/grid/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 |
---|---|
205 /** | 205 /** |
206 * Retrieve Statuswert and update the column | 206 * Retrieve Statuswert and update the column |
207 */ | 207 */ |
208 updateStatusColumn: function(sstore, record, success, opts) { | 208 updateStatusColumn: function(sstore, record, success, opts) { |
209 var value = 0; | 209 var value = 0; |
210 if (sstore.getTotalCount() === 0) { | 210 if (sstore.getTotalCount() === 0 || !opts.statusId) { |
211 value = 0; | 211 value = 0; |
212 } | 212 } |
213 else { | 213 else { |
214 value = sstore.getById(opts.statusId).get('statusWert'); | 214 value = sstore.getById(opts.statusId).get('statusWert'); |
215 } | 215 } |