From 959797ec42f8ac770531c73101aa716c1a7b08fa Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Wed, 9 Aug 2017 16:19:34 +0500 Subject: Select only visible device --- web/app/controller/Root.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web') diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js index 902ef215..baba68a1 100644 --- a/web/app/controller/Root.js +++ b/web/app/controller/Root.js @@ -242,7 +242,7 @@ Ext.define('Traccar.controller.Root', { if (first) { deviceId = Ext.Object.fromQueryString(window.location.search).deviceId; if (deviceId) { - device = Ext.getStore('Devices').getById(deviceId); + device = Ext.getStore('VisibleDevices').findRecord('id', deviceId, 0, false, true, true); if (device) { this.fireEvent('selectdevice', device, true); } -- cgit v1.2.3