N°5905 - Fix "+" button displayed twice on linksets with 1 item

This commit is contained in:
Molkobain
2023-01-26 17:49:04 +01:00
parent 1e37370789
commit f7e8bd31f5

View File

@@ -1877,9 +1877,6 @@ class MenuBlock extends DisplayBlock
'url' => "{$sRootUrl}pages/$sUIPage?route=object.modify&class=$sClass&id=$id{$sContext}#",
) + $aActionParams;
}
if ($bIsCreationAllowed) {
$this->AddNewObjectMenuAction($aRegularActions, $sClass, $sDefaultValuesAsUrlParams);
}
if ($bIsDeleteAllowed) {
$aRegularActions['UI:Menu:Delete'] = array(
'label' => Dict::S('UI:Menu:Delete'),