diff app/controller/Ort.js @ 1366:993e542796fd

Fixed type error in ortszuordnung when user has 'funktion = 4'
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 08 Feb 2017 15:36:55 +0100
parents 5c2d6812d85a
children 75b1b0d7dece
line wrap: on
line diff
--- a/app/controller/Ort.js	Wed Feb 08 15:05:32 2017 +0100
+++ b/app/controller/Ort.js	Wed Feb 08 15:36:55 2017 +0100
@@ -179,6 +179,9 @@
             return;
         }
         var grid = Ext.ComponentQuery.query('ortstammdatengrid')[0];
+        if (!grid.up('ortpanel')) {
+            return;
+        }
         if (!record ||
             !Ext.Array.contains(Lada.netzbetreiber,
             record.get('netzbetreiberId'))) {

http://lada.wald.intevation.org