Explorar el Código

#1214: concurrent access lock not properly released when CheckToWrite() reports an error during a transition from one state to another.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4053 a333f486-631f-4898-b8df-5754b55c2be0
dflaven hace 9 años
padre
commit
800e0fb554
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8 0
      pages/UI.php

+ 8 - 0
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
 						//