mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
Fix object's actions menu cannot be open (regression from 0d26211d)
This commit is contained in:
@@ -391,7 +391,8 @@ JS
|
|||||||
$oSingletonFilter = new DBObjectSearch(get_class($this));
|
$oSingletonFilter = new DBObjectSearch(get_class($this));
|
||||||
$oSingletonFilter->AddCondition('id', $this->GetKey(), '=');
|
$oSingletonFilter->AddCondition('id', $this->GetKey(), '=');
|
||||||
$oBlock = new MenuBlock($oSingletonFilter, 'details', false);
|
$oBlock = new MenuBlock($oSingletonFilter, 'details', false);
|
||||||
$oActionMenuBlock = $oBlock->GetRenderContent($oPage, [], uniqid('', true));
|
$sActionMenuId = utils::Sanitize(uniqid('', true), '', utils::ENUM_SANITIZATION_FILTER_ELEMENT_IDENTIFIER);
|
||||||
|
$oActionMenuBlock = $oBlock->GetRenderContent($oPage, [], $sActionMenuId);
|
||||||
$aHeaderBlocks['toolbar'][$oActionMenuBlock->GetId()] = $oActionMenuBlock;
|
$aHeaderBlocks['toolbar'][$oActionMenuBlock->GetId()] = $oActionMenuBlock;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user