aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-02-03 14:57:59 +0800
committerGitHub <noreply@github.com>2017-02-03 14:57:59 +0800
commit7b13ffa09f5d080d9a175ee3971c70e8cc07fc69 (patch)
tree0c1c143c992ec9fda784854ecd60938e06b37a2d
parent962c40e2127f9c9a7687e4ccb7a6d4a33ac203f7 (diff)
parent14860eadda3bc153b6117b635e5dcc946c90f56e (diff)
downloadtrackermap-web-7b13ffa09f5d080d9a175ee3971c70e8cc07fc69.tar.gz
trackermap-web-7b13ffa09f5d080d9a175ee3971c70e8cc07fc69.tar.bz2
trackermap-web-7b13ffa09f5d080d9a175ee3971c70e8cc07fc69.zip
Merge pull request #397 from Abyss777/fix_395
Correctly set object store for chained store
-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();