Mercurial > lada > lada-client
diff app/view/form/Messprogramm.js @ 1235:d1f43f1e7e84
Fix setting Netzbetreiber in Messprogramm.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Mon, 31 Oct 2016 10:05:10 +0100 |
parents | 390dabbf27ed |
children | ca241fb7fbfb |
line wrap: on
line diff
--- a/app/view/form/Messprogramm.js Fri Oct 28 21:23:31 2016 +0200 +++ b/app/view/form/Messprogramm.js Mon Oct 31 10:05:10 2016 +0100 @@ -134,13 +134,14 @@ } }, { xtype: 'netzbetreiber', - name: 'netzbetreiberId', editable: false, readOnly: true, + isFormField: false, + submitValue: false, fieldLabel: i18n.getMsg('netzbetreiberId'), margin : '0, 5, 5, 5', width : '35%', - labelWidth: 80, + labelWidth: 80 }, { xtype: 'datenbasis', editable: false, @@ -517,8 +518,8 @@ .synchronizeFields ); var mstStore = Ext.data.StoreManager.get('messstellen'); + var mstId = mstStore.getById(messRecord.get('mstId')); if (!messRecord.get('owner')) { - var mstId = mstStore.getById(messRecord.get('mstId')); if (!mstId) { return; } @@ -557,6 +558,7 @@ }); this.down('messstellelabor').setValue(items.getAt(0)); } + this.down('netzbetreiber').setValue(mstId.get('netzbetreiberId')); }, setMediaDesk: function(record) { @@ -653,7 +655,7 @@ this.down('cbox[name=baId]').clearWarningOrError(); this.down('chkbox[name=test]').clearWarningOrError(); this.down('cbox[name=probenartId]').clearWarningOrError(); - this.down('cbox[name=netzbetreiberId]').clearWarningOrError(); + this.down('netzbetreiber').clearWarningOrError(); // clear messages in intervall definition this.down('fset[name=probenIntervallFieldset]').clearMessages(); this.down('cbox[name=probenintervall]').clearWarningOrError();