Mercurial > lada > lada-client
diff app/controller/grid/Status.js @ 1044:8e579acfe0b1
Set preselected messstelle in status editor.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 25 Feb 2016 10:39:17 +0100 |
parents | 859e2e9859cd |
children | 0497693d5b74 |
line wrap: on
line diff
--- a/app/controller/grid/Status.js Thu Feb 25 10:38:13 2016 +0100 +++ b/app/controller/grid/Status.js Thu Feb 25 10:39:17 2016 +0100 @@ -136,6 +136,9 @@ var record = Ext.create('Lada.model.Status', { messungsId: button.up('statusgrid').recordId }); + if (Ext.data.StoreManager.get('messstellenFiltered').count() === 1) { + record.set('erzeuger', Ext.data.StoreManager.get('messstellenFiltered').getAt(0).get('id')); + } } //Set the Date