mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°1636 Fix concurrent lock not released on failed transition (in the console)
This commit is contained in:
@@ -1576,10 +1576,16 @@ EOF
|
||||
{
|
||||
$sMessage = Dict::S('UI:FailedToApplyStimuli');
|
||||
$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