mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 07:12:26 +02:00
#1214: concurrent access lock not properly released when CheckToWrite() reports an error during a transition from one state to another.
SVN:trunk[4053]
This commit is contained in:
@@ -1456,6 +1456,14 @@ EOF
|
|||||||
}
|
}
|
||||||
else if ($sIssues != '')
|
else if ($sIssues != '')
|
||||||
{
|
{
|
||||||
|
|
||||||
|
$sOwnershipToken = utils::ReadPostedParam('ownership_token', null, false, 'raw_data');
|
||||||
|
if ($sOwnershipToken !== null)
|
||||||
|
{
|
||||||
|
// Release the concurrent lock, if any, a new lock will be re-acquired by DisplayStimulusForm below
|
||||||
|
iTopOwnershipLock::ReleaseLock(get_class($oObj), $oObj->GetKey(), $sOwnershipToken);
|
||||||
|
}
|
||||||
|
|
||||||
$bDisplayDetails = false;
|
$bDisplayDetails = false;
|
||||||
// Found issues, explain and give the user a second chance
|
// Found issues, explain and give the user a second chance
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user