From 7866c67f4d49e2fe0f9c83302a2310bdaa83b643 Mon Sep 17 00:00:00 2001 From: Stephen Abello Date: Fri, 28 Aug 2026 09:40:50 +0200 Subject: [PATCH] Apply code review suggestion Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .../Application/UI/Base/Component/Field/FieldUIBlockFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/Application/UI/Base/Component/Field/FieldUIBlockFactory.php b/sources/Application/UI/Base/Component/Field/FieldUIBlockFactory.php index dc113695aa..2b675cb832 100644 --- a/sources/Application/UI/Base/Component/Field/FieldUIBlockFactory.php +++ b/sources/Application/UI/Base/Component/Field/FieldUIBlockFactory.php @@ -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');