diff options
author | Abyss777 <abyss@fox5.ru> | 2016-12-01 17:49:16 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-12-01 17:49:16 +0500 |
commit | b64e51da50e4b3f56b1022cdd82e2ce57188a1b9 (patch) | |
tree | f5095a01482f1dda21476d20512e6acb98130e09 /web/app/view | |
parent | 5433c47155452951b8c75587725bf6c92f8ff11d (diff) | |
download | etbsa-traccar-web-b64e51da50e4b3f56b1022cdd82e2ce57188a1b9.tar.gz etbsa-traccar-web-b64e51da50e4b3f56b1022cdd82e2ce57188a1b9.tar.bz2 etbsa-traccar-web-b64e51da50e4b3f56b1022cdd82e2ce57188a1b9.zip |
Add check
Diffstat (limited to 'web/app/view')
-rw-r--r-- | web/app/view/ReportController.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/view/ReportController.js b/web/app/view/ReportController.js index 97407e2..2ad2bdd 100644 --- a/web/app/view/ReportController.js +++ b/web/app/view/ReportController.js @@ -214,7 +214,7 @@ Ext.define('Traccar.view.ReportController', { callback: function (records, operation, success) { if (success) { Ext.getStore('ReportRoute').add(records); - if (this.singleEvent) { + if (this.singleEvent && records.length > 0) { this.singleEvent = false; this.fireEvent('selectreport', records[0], false); } |