aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-02-01 09:04:14 +0500
committerAbyss777 <abyss@fox5.ru>2017-02-01 09:04:14 +0500
commit14860eadda3bc153b6117b635e5dcc946c90f56e (patch)
tree0c1c143c992ec9fda784854ecd60938e06b37a2d /web
parent962c40e2127f9c9a7687e4ccb7a6d4a33ac203f7 (diff)
downloadtrackermap-web-14860eadda3bc153b6117b635e5dcc946c90f56e.tar.gz
trackermap-web-14860eadda3bc153b6117b635e5dcc946c90f56e.tar.bz2
trackermap-web-14860eadda3bc153b6117b635e5dcc946c90f56e.zip
Correctly set object store for chained store
Diffstat (limited to 'web')
-rw-r--r--web/app/view/EditToolbarController.js3
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();