fix getDolGlobalInt function name

This commit is contained in:
Christophe Battarel 2024-01-02 09:13:33 +01:00
parent 28634dc860
commit 13e92bbc6c

View file

@ -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';
}