From 1602c0f76cfbc273239280b65dc528e231350908 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Mon, 27 Mar 2017 10:05:33 +0500 Subject: Fix deselecting --- web/app/view/ReportController.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'web/app/view/ReportController.js') diff --git a/web/app/view/ReportController.js b/web/app/view/ReportController.js index 9decb652..c02964e7 100644 --- a/web/app/view/ReportController.js +++ b/web/app/view/ReportController.js @@ -110,8 +110,9 @@ Ext.define('Traccar.view.ReportController', { onReportClick: function (button) { var reportType, from, to, store, url; - reportType = this.lookupReference('reportTypeField').getValue(); + this.getGrid().getSelectionModel().deselectAll(); + reportType = this.lookupReference('reportTypeField').getValue(); if (reportType && (this.deviceId || this.groupId)) { from = new Date( this.fromDate.getFullYear(), this.fromDate.getMonth(), this.fromDate.getDate(), -- cgit v1.2.3