mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°1636 Fix concurrent lock not released on failed transition (in the console)
This commit is contained in:
10
pages/UI.php
10
pages/UI.php
@@ -1575,11 +1575,17 @@ EOF
|
||||
if (!$bApplyStimulus)
|
||||
{
|
||||
$sMessage = Dict::S('UI:FailedToApplyStimuli');
|
||||
$sSeverity = 'error';
|
||||
$sSeverity = 'error';
|
||||
|
||||
$sOwnershipToken = utils::ReadPostedParam('ownership_token', null, 'raw_data');
|
||||
if ($sOwnershipToken !== null)
|
||||
{
|
||||
// Release the concurrent lock, if any
|
||||
iTopOwnershipLock::ReleaseLock(get_class($oObj), $oObj->GetKey(), $sOwnershipToken);
|
||||
}
|
||||
}
|
||||
else if ($sIssues != '')
|
||||
{
|
||||
|
||||
$sOwnershipToken = utils::ReadPostedParam('ownership_token', null, 'raw_data');
|
||||
if ($sOwnershipToken !== null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user