From bbfe8e8c328a660b8bdcdf089a8cd798cbbc5f2d Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Mon, 18 Jul 2016 11:34:54 +0500 Subject: Fix it in other way in case user open "attributes" again before save. --- web/app/view/AttributesController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/app') diff --git a/web/app/view/AttributesController.js b/web/app/view/AttributesController.js index c042b765f..5be94dec3 100644 --- a/web/app/view/AttributesController.js +++ b/web/app/view/AttributesController.js @@ -27,7 +27,7 @@ Ext.define('Traccar.view.AttributesController', { var store, propertyName, i = 0, attributes; store = Ext.create('Traccar.store.Attributes'); store.setProxy(Ext.create('Ext.data.proxy.Memory')); - if (this.getView().record.phantom) { + if (typeof this.getView().record.get('attributes') === 'undefined') { this.getView().record.set('attributes', {}); } attributes = this.getView().record.get('attributes'); -- cgit v1.2.3