mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°4720 - ease applystimuli support due to API deprecation removals
This commit is contained in:
@@ -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\Button\ButtonUIBlockFactory;
|
||||||
use Combodo\iTop\Application\UI\Base\Component\ButtonGroup\ButtonGroupUIBlockFactory;
|
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\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\DataTableUIBlockFactory;
|
||||||
use Combodo\iTop\Application\UI\Base\Component\DataTable\StaticTable\StaticTable;
|
use Combodo\iTop\Application\UI\Base\Component\DataTable\StaticTable\StaticTable;
|
||||||
use Combodo\iTop\Application\UI\Base\Component\Field\Field;
|
use Combodo\iTop\Application\UI\Base\Component\Field\Field;
|
||||||
@@ -3447,7 +3446,15 @@ EOF
|
|||||||
} catch (Exception $oException) {
|
} catch (Exception $oException) {
|
||||||
// Catch any exception happening during the stimulus
|
// Catch any exception happening during the stimulus
|
||||||
$sExceptionMessage = ($oException instanceof CoreCannotSaveObjectException) ? $oException->getHtmlMessage() : $oException->getMessage();
|
$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) {
|
if ($sOwnershipToken !== null) {
|
||||||
// Release the concurrent lock, if any
|
// Release the concurrent lock, if any
|
||||||
iTopOwnershipLock::ReleaseLock($sClass, $iKey, $sOwnershipToken);
|
iTopOwnershipLock::ReleaseLock($sClass, $iKey, $sOwnershipToken);
|
||||||
@@ -5903,4 +5910,4 @@ JS
|
|||||||
return $iFlags;
|
return $iFlags;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user