changeset 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 3c42c06e3a36
files app.js
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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