From 700b95e8c6cf8867b6770e014b22ec7648f8fcfd Mon Sep 17 00:00:00 2001 From: odain Date: Fri, 24 Oct 2025 15:14:30 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B04720=20-=20ease=20applystimuli=20support?= =?UTF-8?q?=20due=20to=20API=20deprecation=20removals?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/cmdbabstract.class.inc.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/application/cmdbabstract.class.inc.php b/application/cmdbabstract.class.inc.php index db70affe9..a26b50c45 100644 --- a/application/cmdbabstract.class.inc.php +++ b/application/cmdbabstract.class.inc.php @@ -14,7 +14,6 @@ use Combodo\iTop\Application\UI\Base\Component\Button\Button; use Combodo\iTop\Application\UI\Base\Component\Button\ButtonUIBlockFactory; use Combodo\iTop\Application\UI\Base\Component\ButtonGroup\ButtonGroupUIBlockFactory; use Combodo\iTop\Application\UI\Base\Component\CollapsibleSection\CollapsibleSection; -use Combodo\iTop\Application\UI\Base\Component\DataTable\DataTableSettings; use Combodo\iTop\Application\UI\Base\Component\DataTable\DataTableUIBlockFactory; use Combodo\iTop\Application\UI\Base\Component\DataTable\StaticTable\StaticTable; use Combodo\iTop\Application\UI\Base\Component\Field\Field; @@ -3447,7 +3446,15 @@ EOF } catch (Exception $oException) { // Catch any exception happening during the stimulus $sExceptionMessage = ($oException instanceof CoreCannotSaveObjectException) ? $oException->getHtmlMessage() : $oException->getMessage(); - } finally { + \IssueLog::Error(__METHOD__, null, [$oException->getTraceAsString(), $oException->getMessage()]); + } + catch (\Throwable $e) { + //N°4720 : with deprecation removals: ease maintenance via additional logs + // Catch any Throwable happening during the stimulus + $sExceptionMessage = $e->getMessage(); + \IssueLog::Error(__METHOD__, null, [$e->getTraceAsString(), $e->getMessage()]); + } + finally { if ($sOwnershipToken !== null) { // Release the concurrent lock, if any iTopOwnershipLock::ReleaseLock($sClass, $iKey, $sOwnershipToken); @@ -5903,4 +5910,4 @@ JS return $iFlags; } -} +} \ No newline at end of file