aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/dialog
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-09-04 16:16:31 +0500
committerAbyss777 <abyss@fox5.ru>2017-09-04 16:16:31 +0500
commita9c3d0532db72a635f373f2dce5bc5365aed16dc (patch)
tree5795c557ac54ba9827af64e861eeddcc93845ae5 /web/app/view/dialog
parent44806acd0e4fa1618e66ac61f2cc6e0505dc9c92 (diff)
downloadetbsa-traccar-web-a9c3d0532db72a635f373f2dce5bc5365aed16dc.tar.gz
etbsa-traccar-web-a9c3d0532db72a635f373f2dce5bc5365aed16dc.tar.bz2
etbsa-traccar-web-a9c3d0532db72a635f373f2dce5bc5365aed16dc.zip
Improve CustomNumberField
Diffstat (limited to 'web/app/view/dialog')
-rw-r--r--web/app/view/dialog/CommandController.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/web/app/view/dialog/CommandController.js b/web/app/view/dialog/CommandController.js
index 4ab5184..fc233f3 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({