Mercurial > lada > lada-client
diff app/controller/grid/Ortszuordnung.js @ 1314:8ace34d9352a
changed behaviour of ortserstellung window on save; fix update (form)
author | Maximilian Krambach <mkrambach@intevation.de> |
---|---|
date | Fri, 03 Feb 2017 11:08:44 +0100 |
parents | 1bcc3a62e909 |
children | 6edab3ee2198 |
line wrap: on
line diff
--- a/app/controller/grid/Ortszuordnung.js Fri Feb 03 09:47:52 2017 +0100 +++ b/app/controller/grid/Ortszuordnung.js Fri Feb 03 11:08:44 2017 +0100 @@ -172,7 +172,8 @@ var grid = button.up('ortszuordnungwindow').down('ortstammdatengrid').getView(); var selected = grid.getSelectionModel().getSelection()[0]; var newRecord = Ext.create('Lada.model.Ort', selected.data); - newRecord.set('ortId', ''); + newRecord.set('ortId', null); + newRecord.set('id', null); Ext.create('Lada.view.window.Ortserstellung', { record: newRecord, parentWindow: button.up('ortszuordnungwindow')