comparison app/view/grid/Messung.js @ 813:ee8cce4b4522

In some cases there was an error bc. the Item in the StatuswerteStore was not found. this is fixed now.
author Dustin Demuth <dustin@intevation.de>
date Thu, 28 May 2015 11:06:13 +0200
parents ad24af3fcf89
children 5ed0e6273888
comparison
equal deleted inserted replaced
812:188a9faf96e0 813:ee8cce4b4522
185 }, 185 },
186 186
187 updateStatusColumn: function(sstore, record, success, opts) { 187 updateStatusColumn: function(sstore, record, success, opts) {
188 var value; 188 var value;
189 if (sstore.getTotalCount() === 0) { 189 if (sstore.getTotalCount() === 0) {
190 value = 'unbekannt'; 190 value = 0;
191 } 191 }
192 else { 192 else {
193 value = sstore.last().get('status'); 193 value = sstore.last().get('status');
194 } 194 }
195 if (Ext.fly(opts.divId)) { 195 if (Ext.fly(opts.divId)) {

http://lada.wald.intevation.org