diff 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
line wrap: on
line diff
--- a/app.js	Wed Apr 13 20:11:06 2016 +0200
+++ b/app.js	Thu Apr 28 11:38:25 2016 +0200
@@ -157,6 +157,9 @@
                         for (var i = 0; i < mstLabor.length; i++) {
                             var item = store.getById(mstLabor[i].messstelle);
                             var itemLabor = store.getById(mstLabor[i].labor);
+                            if (!itemLabor) {
+                                continue;
+                            }
                             mstLaborStore.add({
                                 id: i,
                                 messStelle: mstLabor[i].messstelle,

http://lada.wald.intevation.org