From 925e45782c3197b1ed4c8f3da7e09cd2b598386e Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 26 Feb 2021 14:05:26 +0100 Subject: [PATCH] Fix indexation script and protection for concurrency with cron --- datamodels/2.x/itop-core-update/index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/datamodels/2.x/itop-core-update/index.php b/datamodels/2.x/itop-core-update/index.php index ac4897d811..3a715d83a3 100644 --- a/datamodels/2.x/itop-core-update/index.php +++ b/datamodels/2.x/itop-core-update/index.php @@ -10,10 +10,12 @@ use Combodo\iTop\CoreUpdate\Controller\UpdateController; use ContextTag; require_once(APPROOT.'application/startup.inc.php'); -new ContextTag(ContextTag::TAG_SETUP); +$oCtxCoreUpdate = new ContextTag(ContextTag::TAG_SETUP); $oUpdateController = new UpdateController(MODULESROOT.'itop-core-update/view', 'itop-core-update'); $oUpdateController->DisableInDemoMode(); $oUpdateController->AllowOnlyAdmin(); $oUpdateController->SetDefaultOperation('SelectUpdateFile'); $oUpdateController->HandleOperation(); + +unset($oCtxCoreUpdate);