Mercurial > lada > lada-client
diff app/view/window/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 | df6d1a2cdd4a |
children | a3a715417540 |
line wrap: on
line diff
--- a/app/view/window/Ortszuordnung.js Wed May 25 14:36:51 2016 +0200 +++ b/app/view/window/Ortszuordnung.js Wed May 25 14:52:41 2016 +0200 @@ -99,6 +99,13 @@ * Initialise the Data of this Window */ initData: function() { + if (!this.record) { + this.record = Ext.create('Lada.model.Ortszuordnung'); + if (!this.record.get('letzteAenderung')) { + this.record.data.letzteAenderung = new Date(); + } + this.record.set('probeId', this.probe.get('id')); + } this.down('ortszuordnungform').setRecord(this.record); this.down('ortpanel').setStore(); },