comparison app.js @ 1084:54457d3f7f63

Fixed type error if user role has no labor_mst_id.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 28 Apr 2016 11:38:25 +0200
parents cbe5a19449a4
children 9bcd17f7a0ae a73726bba79c
comparison
equal deleted inserted replaced
1083:cbe5a19449a4 1084:54457d3f7f63
155 load: { 155 load: {
156 fn: function(store, records) { 156 fn: function(store, records) {
157 for (var i = 0; i < mstLabor.length; i++) { 157 for (var i = 0; i < mstLabor.length; i++) {
158 var item = store.getById(mstLabor[i].messstelle); 158 var item = store.getById(mstLabor[i].messstelle);
159 var itemLabor = store.getById(mstLabor[i].labor); 159 var itemLabor = store.getById(mstLabor[i].labor);
160 if (!itemLabor) {
161 continue;
162 }
160 mstLaborStore.add({ 163 mstLaborStore.add({
161 id: i, 164 id: i,
162 messStelle: mstLabor[i].messstelle, 165 messStelle: mstLabor[i].messstelle,
163 netzbetreiberId: item.get('netzbetreiberId'), 166 netzbetreiberId: item.get('netzbetreiberId'),
164 laborMst: mstLabor[i].labor, 167 laborMst: mstLabor[i].labor,

http://lada.wald.intevation.org