From 37a6a5183dc71443bfccf5302ad597b2ae9a3c77 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Wed, 11 May 2016 11:44:26 +0000 Subject: [PATCH] #1214: concurrent access lock not properly released when CheckToWrite() reports an error during a transition from one state to another. SVN:trunk[4053] --- pages/UI.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/UI.php b/pages/UI.php index f91e4c7690..6be996d4a8 100644 --- a/pages/UI.php +++ b/pages/UI.php @@ -1456,6 +1456,14 @@ EOF } 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; // Found issues, explain and give the user a second chance //