mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°5170 - In a transition DoCheckToWrite returned error, generes a Fatal error (#539)
This commit is contained in:
10
pages/UI.php
10
pages/UI.php
@@ -1206,8 +1206,16 @@ try
|
||||
$bApplyTransition = $oObj->DisplayStimulusForm($oP, $sStimulus, $aPrefillFormParam);
|
||||
}
|
||||
catch (ApplicationException $e) {
|
||||
$bApplyTransition = false;
|
||||
$sMessage = $e->getMessage();
|
||||
$sSeverity = 'info';
|
||||
$sSeverity = 'warning';
|
||||
ReloadAndDisplay($oP, $oObj, 'stimulus', $sMessage, $sSeverity);
|
||||
}
|
||||
catch (CoreCannotSaveObjectException $e) {
|
||||
$bApplyTransition = false;
|
||||
$aIssues = $e->getIssues();
|
||||
$sMessage = $e->getHtmlMessage();
|
||||
$sSeverity = 'warning';
|
||||
ReloadAndDisplay($oP, $oObj, 'stimulus', $sMessage, $sSeverity);
|
||||
}
|
||||
if ($bApplyTransition) {
|
||||
|
||||
Reference in New Issue
Block a user