N°782.1 New configuration parameter 'allow_menu_on_linkset' (boolean, default value false) to display actions in linkset in view mode (new, modify, delete, ...)

SVN:trunk[4876]
This commit is contained in:
Guillaume Lajarige
2017-08-25 08:35:59 +00:00
parent 538e9c11e8
commit 58534dca39
2 changed files with 18 additions and 10 deletions

View File

@@ -520,7 +520,7 @@ EOF
$aParams = array(
'target_attr' => $oAttDef->GetExtKeyToMe(),
'object_id' => $this->GetKey(),
'menu' => false,
'menu' => MetaModel::GetConfig()->Get('allow_menu_on_linkset'),
'default' => $aDefaults,
'table_id' => $sClass.'_'.$sAttCode,
);
@@ -535,7 +535,7 @@ EOF
'object_id' => $this->GetKey(),
'target_attr' => $oAttDef->GetExtKeyToRemote(),
'view_link' => false,
'menu' => false,
'menu' => MetaModel::GetConfig()->Get('allow_menu_on_linkset'),
'display_limit' => true, // By default limit the list to speed up the initial load & display
'table_id' => $sClass.'_'.$sAttCode,
);