Mercurial > lada > lada-client
diff app/controller/form/Ortszuordnung.js @ 1339:1a2cd9bef6d7
messprogramm zuordnung now functional
author | Maximilian Krambach <mkrambach@intevation.de> |
---|---|
date | Fri, 03 Feb 2017 19:37:28 +0100 |
parents | f879c806f880 |
children | 2e8eba3918b1 |
line wrap: on
line diff
--- a/app/controller/form/Ortszuordnung.js Fri Feb 03 18:01:25 2017 +0100 +++ b/app/controller/form/Ortszuordnung.js Fri Feb 03 19:37:28 2017 +0100 @@ -51,16 +51,8 @@ var data = formPanel.getForm().getFieldValues(false); var i18n = Lada.getApplication().bundle; var recordData = formPanel.getForm().getRecord().data; - if (recordData['probeId'] !== undefined) { - // TODO: as model.ort.ortId and model.ortszuordnung.ortId coexist, - // but mean different things, data.ortId is an array here, of - // which we need the first entry - recordData.ortId = data.ortId[0]; - recordData.ortszuordnungTyp = data.ortszuordnungTyp; - } else { //messprogramm - recordData.ortsTyp = data.ortsTyp; - recordData.ort = data.ort; - } + recordData.ortId = data.ortId[0]; + recordData.ortszuordnungTyp = data.ortszuordnungTyp; recordData.ortszusatztext = data.ortszusatztext; if (!data.letzteAenderung) { recordData.letzteAenderung = new Date();