diff app/view/form/Messprogramm.js @ 1071:116b9629eb2c

Fixed mstId in new messprogramm dialog.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 07 Apr 2016 10:42:08 +0200
parents 096d552508cd
children 61cc583c3649
line wrap: on
line diff
--- a/app/view/form/Messprogramm.js	Wed Apr 06 16:43:30 2016 +0200
+++ b/app/view/form/Messprogramm.js	Thu Apr 07 10:42:08 2016 +0200
@@ -454,6 +454,9 @@
         var mstStore = Ext.data.StoreManager.get('messstellen');
         if (!messRecord.get('owner')) {
             var mstId = mstStore.getById(messRecord.get('mstId'));
+            if (!mstId) {
+                return;
+            }
             var laborMstId = mstStore.getById(messRecord.get('laborMstId'));
             if (laborMstId) {
                 laborMstId = laborMstId.get('messStelle');

http://lada.wald.intevation.org