aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-07-21 18:42:41 +0500
committerAbyss777 <abyss@fox5.ru>2017-07-21 18:42:41 +0500
commit58919b078db6c163f47bcf03dcc576bb5c3ac56f (patch)
tree7f6f4f267fbbbcf9090d0b003fc7a9d91f37b5e9 /web
parentad74d97866a4c39c90ae2577be204d0f43933a7b (diff)
downloadtrackermap-web-58919b078db6c163f47bcf03dcc576bb5c3ac56f.tar.gz
trackermap-web-58919b078db6c163f47bcf03dcc576bb5c3ac56f.tar.bz2
trackermap-web-58919b078db6c163f47bcf03dcc576bb5c3ac56f.zip
Fix adding new device if Geofences column visible
Diffstat (limited to 'web')
-rw-r--r--web/app/view/edit/Devices.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/web/app/view/edit/Devices.js b/web/app/view/edit/Devices.js
index d6018006..d5e6d5f4 100644
--- a/web/app/view/edit/Devices.js
+++ b/web/app/view/edit/Devices.js
@@ -161,9 +161,11 @@ Ext.define('Traccar.view.edit.Devices', {
},
renderer: function (value) {
var i, result = '';
- for (i = 0; i < value.length; i++) {
- result += Traccar.AttributeFormatter.geofenceIdFormatter(value[i]);
- result += (i < value.length - 1) ? ', ' : '';
+ if (Ext.isArray(value)) {
+ for (i = 0; i < value.length; i++) {
+ result += Traccar.AttributeFormatter.geofenceIdFormatter(value[i]);
+ result += (i < value.length - 1) ? ', ' : '';
+ }
}
return result;
}