mirror of
https://github.com/Combodo/iTop.git
synced 2026-09-15 02:28:20 +02:00
Apply code review suggestion
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -76,7 +76,7 @@ class FieldUIBlockFactory extends AbstractUIBlockFactory
|
||||
$iMaxActions = utils::GetConfig()->Get('attribute.max_actions_items');
|
||||
$aActions = [];
|
||||
// Create buttons for a few actions or a grouped-actions button for more actions than configured
|
||||
if (count($aParams['actions']) > $iMaxActions) {
|
||||
if ($iMaxActions > 0 && count($aParams['actions']) > $iMaxActions) {
|
||||
$oGroupedActionsButton = ButtonUIBlockFactory::MakeIconAction('fas fa-ellipsis-v', Dict::S('UI:Component:Field:GroupedActions:Tooltip'), 'grouped-actions');
|
||||
$oGroupedActionsButton->AddCSSClass('ibo-field--action');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user