소스 검색

#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 9 년 전
부모
커밋
800e0fb554
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  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
 						//