Mercurial > lada > lada-client
comparison app/view/grid/Ortszuordnung.js @ 1394:76ff6d084167
Do not load Ortszuordnung for messprogramm in "new messprogramm" dialog
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 09 Mar 2017 15:37:19 +0100 |
parents | 036c594de978 |
children |
comparison
equal
deleted
inserted
replaced
1393:7cf7a8dc7818 | 1394:76ff6d084167 |
---|---|
182 | 182 |
183 initData: function() { | 183 initData: function() { |
184 var modelname; | 184 var modelname; |
185 if (this.isMessprogramm) { | 185 if (this.isMessprogramm) { |
186 this.store = Ext.create('Lada.store.OrtszuordnungMp'); | 186 this.store = Ext.create('Lada.store.OrtszuordnungMp'); |
187 this.store.load({ | 187 if (this.recordId) { |
188 params: { | 188 this.store.load({ |
189 messprogrammId: this.recordId | 189 params: { |
190 }}); | 190 messprogrammId: this.recordId |
191 modelname = 'Lada.model.Messprogramm'; | 191 }}); |
192 } else { | 192 modelname = 'Lada.model.Messprogramm'; |
193 } | |
194 else { | |
195 return; | |
196 } | |
197 } | |
198 else { | |
193 modelname = 'Lada.model.Probe'; | 199 modelname = 'Lada.model.Probe'; |
194 this.store = Ext.create('Lada.store.Ortszuordnung'); | 200 this.store = Ext.create('Lada.store.Ortszuordnung'); |
195 this.store.load({ | 201 this.store.load({ |
196 params: { | 202 params: { |
197 probeId: this.recordId | 203 probeId: this.recordId |