mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02: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)
|
if (!$bApplyStimulus)
|
||||||
{
|
{
|
||||||
$sMessage = Dict::S('UI:FailedToApplyStimuli');
|
$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 != '')
|
else if ($sIssues != '')
|
||||||
{
|
{
|
||||||
|
|
||||||
$sOwnershipToken = utils::ReadPostedParam('ownership_token', null, 'raw_data');
|
$sOwnershipToken = utils::ReadPostedParam('ownership_token', null, 'raw_data');
|
||||||
if ($sOwnershipToken !== null)
|
if ($sOwnershipToken !== null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user