N°6147 - Filter list : tooltip and new action

This commit is contained in:
Benjamin Dalsass
2023-04-12 07:53:12 +02:00
parent 544ee695be
commit 288641646c
4 changed files with 332 additions and 314 deletions

View File

@@ -1781,6 +1781,14 @@ class MenuBlock extends DisplayBlock
$this->AddNewObjectMenuAction($aRegularActions, $sClass, $sDefaultValuesAsUrlParams);
}
// Filter this list (provided by extra params has it need filter param)
if (array_key_exists('filter_this_list_url', $aExtraParams)) {
$aToolkitActions[] = [
'label' => Dict::S('UI:Menu:FilterList'),
'url' => $aExtraParams['filter_this_list_url'],
];
}
// Any style actions
// - Bulk actions on objects set
if ($iSetCount > 1) {