diff app/view/form/Ortszuordnung.js @ 1134:f1d21e6a7449

Fixed adding new ortszuortnung for probe objects.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 25 May 2016 14:52:41 +0200
parents 981339d774b8
children 5ceb0381ae73
line wrap: on
line diff
--- a/app/view/form/Ortszuordnung.js	Wed May 25 14:36:51 2016 +0200
+++ b/app/view/form/Ortszuordnung.js	Wed May 25 14:52:41 2016 +0200
@@ -146,6 +146,9 @@
     refreshOrt: function(ortId) {
         var orteStore = Ext.StoreManager.get('orte');
         var ort = orteStore.getById(ortId);
+        if (!ort) {
+            return;
+        }
         var verwStore = Ext.StoreManager.get('verwaltungseinheiten');
         var verw = verwStore.getById(ort.get('gemId'));
         var staatStore = Ext.StoreManager.get('staaten');

http://lada.wald.intevation.org