comparison app/view/form/Ortszuordnung.js @ 1341:2e8eba3918b1

OrtszuordnungMp fix
author Maximilian Krambach <mkrambach@intevation.de>
date Fri, 03 Feb 2017 21:43:52 +0100
parents 15e4a3e42ad7
children cd16b30dbc10
comparison
equal deleted inserted replaced
1340:15e4a3e42ad7 1341:2e8eba3918b1
141 * it will set the ortId of this record 141 * it will set the ortId of this record
142 */ 142 */
143 setOrt: function(row, selRecord, index, opts) { 143 setOrt: function(row, selRecord, index, opts) {
144 var newOrtId = selRecord.get('id'); 144 var newOrtId = selRecord.get('id');
145 if (newOrtId) { 145 if (newOrtId) {
146 if (this.type == 'probe') { 146 this.getForm().setValues({ortId: newOrtId});
147 this.getForm().setValues({ortId: newOrtId});
148 } else {
149 this.getForm().setValues({ort: newOrtId});
150 }
151 this.setOrtInfo(selRecord); 147 this.setOrtInfo(selRecord);
152 } 148 }
153 }, 149 },
154 150
155 setOrtInfo: function(ortrecord) { 151 setOrtInfo: function(ortrecord) {

http://lada.wald.intevation.org