From 577c3c1ae8bbe07110c4a7ce73c1db0b7d5fee82 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Tue, 4 Apr 2017 17:47:42 +0500 Subject: Suppress events on failure to avoid infinite loop --- web/app/view/permissions/BaseController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/app/view/permissions/BaseController.js') diff --git a/web/app/view/permissions/BaseController.js b/web/app/view/permissions/BaseController.js index dc4d6ef2..8a85a5e2 100644 --- a/web/app/view/permissions/BaseController.js +++ b/web/app/view/permissions/BaseController.js @@ -57,7 +57,7 @@ Ext.define('Traccar.view.permissions.BaseController', { jsonData: Ext.util.JSON.encode(data), callback: function (options, success, response) { if (!success) { - selection.deselect(record); + selection.deselect(record, true); Traccar.app.showError(response); } } @@ -75,7 +75,7 @@ Ext.define('Traccar.view.permissions.BaseController', { jsonData: Ext.util.JSON.encode(data), callback: function (options, success, response) { if (!success) { - selection.select(record); + selection.select(record, true, true); Traccar.app.showError(response); } } -- cgit v1.2.3