Mercurial > lada > lada-client
comparison 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 |
comparison
equal
deleted
inserted
replaced
1133:df6d1a2cdd4a | 1134:f1d21e6a7449 |
---|---|
144 }, | 144 }, |
145 | 145 |
146 refreshOrt: function(ortId) { | 146 refreshOrt: function(ortId) { |
147 var orteStore = Ext.StoreManager.get('orte'); | 147 var orteStore = Ext.StoreManager.get('orte'); |
148 var ort = orteStore.getById(ortId); | 148 var ort = orteStore.getById(ortId); |
149 if (!ort) { | |
150 return; | |
151 } | |
149 var verwStore = Ext.StoreManager.get('verwaltungseinheiten'); | 152 var verwStore = Ext.StoreManager.get('verwaltungseinheiten'); |
150 var verw = verwStore.getById(ort.get('gemId')); | 153 var verw = verwStore.getById(ort.get('gemId')); |
151 var staatStore = Ext.StoreManager.get('staaten'); | 154 var staatStore = Ext.StoreManager.get('staaten'); |
152 var staat = staatStore.getById(ort.get('staatId')); | 155 var staat = staatStore.getById(ort.get('staatId')); |
153 | 156 |