diff options
author | Abyss777 <abyss@fox5.ru> | 2016-07-18 11:34:54 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-07-18 11:34:54 +0500 |
commit | bbfe8e8c328a660b8bdcdf089a8cd798cbbc5f2d (patch) | |
tree | e4342fb8dd0f743fad8060ca1029504410ce4c21 /web/app | |
parent | 94ea366eb33694447812e6d63133aea28379d6f4 (diff) | |
download | trackermap-server-bbfe8e8c328a660b8bdcdf089a8cd798cbbc5f2d.tar.gz trackermap-server-bbfe8e8c328a660b8bdcdf089a8cd798cbbc5f2d.tar.bz2 trackermap-server-bbfe8e8c328a660b8bdcdf089a8cd798cbbc5f2d.zip |
Fix it in other way in case user open "attributes" again before save.
Diffstat (limited to 'web/app')
-rw-r--r-- | web/app/view/AttributesController.js | 2 |
1 files changed, 1 insertions, 1 deletions
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'); |