From 713d765e302b63b74287c537c80478b19ab361ea Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 14 Aug 2023 03:37:22 +0200 Subject: [PATCH] NEW drop down for action button show a simple button if only 1 action --- htdocs/core/lib/functions.lib.php | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 65328ac8f2e..59c4e9aa68b 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -11088,18 +11088,28 @@ function dolGetButtonAction($label, $text = '', $actionType = 'default', $url = // If $url is an array, we must build a dropdown button if (is_array($url)) { - $out = '"; return $out; }