Fix error in object details : "Too few arguments to function MenuBlock::GetRenderContent()"

This commit is contained in:
Pierre Goiffon
2022-02-08 15:16:57 +01:00
parent 3b99006159
commit 0d26211dbe

View File

@@ -391,7 +391,7 @@ JS
$oSingletonFilter = new DBObjectSearch(get_class($this));
$oSingletonFilter->AddCondition('id', $this->GetKey(), '=');
$oBlock = new MenuBlock($oSingletonFilter, 'details', false);
$oActionMenuBlock = $oBlock->GetRenderContent($oPage);
$oActionMenuBlock = $oBlock->GetRenderContent($oPage, [], uniqid('', true));
$aHeaderBlocks['toolbar'][$oActionMenuBlock->GetId()] = $oActionMenuBlock;
}