From 534995dd6c54f2e08800d3fcac5e7be76efee98b Mon Sep 17 00:00:00 2001 From: Vanyo Date: Sun, 8 Feb 2026 20:44:15 +0700 Subject: [PATCH] Initialize arrayforbutaction before hook (#37149) --- htdocs/commande/card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/commande/card.php b/htdocs/commande/card.php index 501ed8784f5..27338233e5d 100644 --- a/htdocs/commande/card.php +++ b/htdocs/commande/card.php @@ -3433,6 +3433,7 @@ if ($action == 'create' && $usercancreate) { print '
'; $parameters = array(); + $arrayforbutaction = array(); // Note that $action and $object may be modified by hook $reshook = $hookmanager->executeHooks('addMoreActionsButtons', $parameters, $object, $action); if (empty($reshook)) { @@ -3493,7 +3494,6 @@ if ($action == 'create' && $usercancreate) { print dolGetButtonAction('', $langs->trans('Modify'), 'default', $_SERVER["PHP_SELF"] . '?action=modif&token=' . newToken() . '&id=' . $object->id, ''); } - $arrayforbutaction = array(); // Create a purchase order if (!getDolGlobalInt('COMMANDE_DISABLE_ADD_PURCHASE_ORDER')) {