From 6a3175ed389091d5a4ea10bcada4793234bfa1cb Mon Sep 17 00:00:00 2001 From: Nabil Adouani Date: Tue, 1 Jun 2021 06:55:04 +0200 Subject: [PATCH] #2025 Clear analyzers cache when switching organisation --- frontend/app/scripts/controllers/RootCtrl.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/app/scripts/controllers/RootCtrl.js b/frontend/app/scripts/controllers/RootCtrl.js index b04cd62279..fc3be2df7b 100644 --- a/frontend/app/scripts/controllers/RootCtrl.js +++ b/frontend/app/scripts/controllers/RootCtrl.js @@ -2,7 +2,7 @@ * Controller for main page */ angular.module('theHiveControllers').controller('RootCtrl', - function ($scope, $rootScope, $timeout, $uibModal, $location, $state, AuthenticationSrv, UtilsSrv, StreamSrv, StreamQuerySrv, CaseSrv, CaseTemplateSrv, CustomFieldsSrv, NotificationSrv, AppLayoutSrv, VersionSrv, currentUser, appConfig) { + function ($scope, $rootScope, $timeout, $uibModal, $location, $state, AuthenticationSrv, AnalyzerSrv, StreamSrv, StreamQuerySrv, CaseSrv, CaseTemplateSrv, CustomFieldsSrv, NotificationSrv, AppLayoutSrv, VersionSrv, currentUser, appConfig) { 'use strict'; if (currentUser === 520) { @@ -182,6 +182,8 @@ angular.module('theHiveControllers').controller('RootCtrl', }); }) .then(function () { + AnalyzerSrv.clearCache() + $state.go('app.index', {}, { reload: true }); }) .catch(function (err) {