aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-07-18 11:34:54 +0500
committerAbyss777 <abyss@fox5.ru>2016-07-18 11:34:54 +0500
commitbbfe8e8c328a660b8bdcdf089a8cd798cbbc5f2d (patch)
treee4342fb8dd0f743fad8060ca1029504410ce4c21
parent94ea366eb33694447812e6d63133aea28379d6f4 (diff)
downloadtraccar-server-bbfe8e8c328a660b8bdcdf089a8cd798cbbc5f2d.tar.gz
traccar-server-bbfe8e8c328a660b8bdcdf089a8cd798cbbc5f2d.tar.bz2
traccar-server-bbfe8e8c328a660b8bdcdf089a8cd798cbbc5f2d.zip
Fix it in other way in case user open "attributes" again before save.
-rw-r--r--web/app/view/AttributesController.js2
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');