mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°5945 - Fix "menu" option in dashlet list having no effect since relations refactoring
This commit is contained in:
@@ -1871,7 +1871,13 @@ class MenuBlock extends DisplayBlock
|
|||||||
/** @var array $aToolkitActions Any "legacy" toolkit menu item, which are now displayed in the same menu as the $aRegularActions, after them */
|
/** @var array $aToolkitActions Any "legacy" toolkit menu item, which are now displayed in the same menu as the $aRegularActions, after them */
|
||||||
$aToolkitActions = [];
|
$aToolkitActions = [];
|
||||||
|
|
||||||
if (!isset($aExtraParams['selection_mode']) || ($aExtraParams['selection_mode'] == "")) {
|
// Display menu actions only if...
|
||||||
|
if (
|
||||||
|
// ... NOT in a selection mode
|
||||||
|
(!isset($aExtraParams['selection_mode']) || ($aExtraParams['selection_mode'] == ""))
|
||||||
|
// ... "menu" parameter is NOT EXPLICITLY disabled
|
||||||
|
&& (!isset($aExtraParams['menu']) || $aExtraParams['menu'] === "1" || $aExtraParams['menu'] === true)
|
||||||
|
) {
|
||||||
$oAppContext = new ApplicationContext();
|
$oAppContext = new ApplicationContext();
|
||||||
$sContext = $oAppContext->GetForLink();
|
$sContext = $oAppContext->GetForLink();
|
||||||
if (utils::IsNotNullOrEmptyString($sContext)) {
|
if (utils::IsNotNullOrEmptyString($sContext)) {
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ class BlockIndirectLinkSetViewTable extends AbstractBlockLinkSetViewTable
|
|||||||
'object_id' => $this->oDbObject->GetKey(),
|
'object_id' => $this->oDbObject->GetKey(),
|
||||||
'target_attr' => $this->oAttDef->GetExtKeyToRemote(),
|
'target_attr' => $this->oAttDef->GetExtKeyToRemote(),
|
||||||
'view_link' => false,
|
'view_link' => false,
|
||||||
'menu' => false,
|
'menu' => MetaModel::GetConfig()->Get('allow_menu_on_linkset'),
|
||||||
'display_limit' => true,
|
'display_limit' => true,
|
||||||
'table_id' => $this->GetTableId(),
|
'table_id' => $this->GetTableId(),
|
||||||
'zlist' => false,
|
'zlist' => false,
|
||||||
|
|||||||
Reference in New Issue
Block a user