aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/command/CommandDialogController.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/command/CommandDialogController.js')
-rw-r--r--web/app/view/command/CommandDialogController.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/app/view/command/CommandDialogController.js b/web/app/view/command/CommandDialogController.js
index e6275024a..28c146187 100644
--- a/web/app/view/command/CommandDialogController.js
+++ b/web/app/view/command/CommandDialogController.js
@@ -28,8 +28,8 @@ Ext.define('Traccar.view.command.CommandDialogController', {
form.updateRecord();
var record = form.getRecord();
- if (record.get('type') === 'positionFix') {
- other = this.lookupReference('paramPositionFix');
+ if (record.get('type') === 'positionPeriodic') {
+ other = this.lookupReference('paramPositionPeriodic');
var value = other.down('numberfield[name="frequency"]').getValue();
value *= other.down('combobox[name="unit"]').getValue();