From 13e92bbc6cccdc10e295803d651b3a341f8a76d8 Mon Sep 17 00:00:00 2001 From: Christophe Battarel Date: Tue, 2 Jan 2024 09:13:33 +0100 Subject: [PATCH] fix getDolGlobalInt function name --- htdocs/fourn/commande/card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php index d99e9edacbe..adad08519f3 100644 --- a/htdocs/fourn/commande/card.php +++ b/htdocs/fourn/commande/card.php @@ -1057,7 +1057,7 @@ if (empty($reshook)) { if ($cancel) { $action = ''; - } elseif ($methodecommande <= 0 && !dolGetGlobalInt('SUPPLIER_ORDER_MODE_OPTIONAL')) { + } elseif ($methodecommande <= 0 && !getDolGlobalInt('SUPPLIER_ORDER_MODE_OPTIONAL')) { setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentities("OrderMode")), null, 'errors'); $action = 'createorder'; }