diff options
-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(); |