#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:
Denis Flaven
2016-05-11 11:44:26 +00:00
parent ebd89194ee
commit 37a6a5183d

View File

@@ -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
// //