diff options
author | Abyss777 <abyss@fox5.ru> | 2017-02-01 09:04:14 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-02-01 09:04:14 +0500 |
commit | 14860eadda3bc153b6117b635e5dcc946c90f56e (patch) | |
tree | 0c1c143c992ec9fda784854ecd60938e06b37a2d /web/app/view/EditToolbarController.js | |
parent | 962c40e2127f9c9a7687e4ccb7a6d4a33ac203f7 (diff) | |
download | trackermap-web-14860eadda3bc153b6117b635e5dcc946c90f56e.tar.gz trackermap-web-14860eadda3bc153b6117b635e5dcc946c90f56e.tar.bz2 trackermap-web-14860eadda3bc153b6117b635e5dcc946c90f56e.zip |
Correctly set object store for chained store
Diffstat (limited to 'web/app/view/EditToolbarController.js')
-rw-r--r-- | web/app/view/EditToolbarController.js | 3 |
1 files changed, 3 insertions, 0 deletions
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(); |