diff options
author | Abyss777 <abyss@fox5.ru> | 2017-09-04 16:16:31 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-09-04 16:16:31 +0500 |
commit | a9c3d0532db72a635f373f2dce5bc5365aed16dc (patch) | |
tree | 5795c557ac54ba9827af64e861eeddcc93845ae5 /web/app/view/dialog | |
parent | 44806acd0e4fa1618e66ac61f2cc6e0505dc9c92 (diff) | |
download | trackermap-web-a9c3d0532db72a635f373f2dce5bc5365aed16dc.tar.gz trackermap-web-a9c3d0532db72a635f373f2dce5bc5365aed16dc.tar.bz2 trackermap-web-a9c3d0532db72a635f373f2dce5bc5365aed16dc.zip |
Improve CustomNumberField
Diffstat (limited to 'web/app/view/dialog')
-rw-r--r-- | web/app/view/dialog/CommandController.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/web/app/view/dialog/CommandController.js b/web/app/view/dialog/CommandController.js index 4ab51847..fc233f30 100644 --- a/web/app/view/dialog/CommandController.js +++ b/web/app/view/dialog/CommandController.js @@ -75,11 +75,10 @@ Ext.define('Traccar.view.dialog.CommandController', { record = form.getRecord(); parameters = this.lookupReference('parameters').items.items; - if (parameters.length > 0) { - for (i = 0; i < parameters.length; i++) { - attributes[parameters[i].key] = parameters[i].getValue(); - } + for (i = 0; i < parameters.length; i++) { + attributes[parameters[i].key] = parameters[i].getValue(); } + record.set('attributes', attributes); Ext.Ajax.request({ |