mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-02 15:08:45 +02:00
N°3924 - Fix missing activity panel on object details when cancelling transition form
This commit is contained in:
@@ -411,14 +411,20 @@ try
|
||||
|
||||
case 'release_lock_and_details':
|
||||
$oP->DisableBreadCrumb();
|
||||
|
||||
// Retrieve object
|
||||
$sClass = utils::ReadParam('class', '', false, 'class');
|
||||
$id = utils::ReadParam('id', '');
|
||||
$oObj = MetaModel::GetObject($sClass, $id);
|
||||
|
||||
// Retrieve ownership token
|
||||
$sToken = utils::ReadParam('token', '');
|
||||
if ($sToken != '')
|
||||
{
|
||||
iTopOwnershipLock::ReleaseLock($sClass, $id, $sToken);
|
||||
}
|
||||
|
||||
$oP->SetContentLayout(PageContentFactory::MakeForObjectDetails($oObj, cmdbAbstractObject::ENUM_OBJECT_MODE_VIEW));
|
||||
cmdbAbstractObject::ReloadAndDisplay($oP, $oObj, array('operation' => 'details'));
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user