From 14860eadda3bc153b6117b635e5dcc946c90f56e Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Wed, 1 Feb 2017 09:04:14 +0500 Subject: Correctly set object store for chained store --- web/app/view/EditToolbarController.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'web') diff --git a/web/app/view/EditToolbarController.js b/web/app/view/EditToolbarController.js index 7c392d53..5ce50172 100644 --- a/web/app/view/EditToolbarController.js +++ b/web/app/view/EditToolbarController.js @@ -22,6 +22,9 @@ Ext.define('Traccar.view.EditToolbarController', { onAddClick: function () { var dialog, objectInstance = Ext.create(this.objectModel); objectInstance.store = this.getView().getStore(); + if (objectInstance.store instanceof Ext.data.ChainedStore) { + objectInstance.store = objectInstance.store.getSource(); + } dialog = Ext.create(this.objectDialog); dialog.down('form').loadRecord(objectInstance); dialog.show(); -- cgit v1.2.3