From 35bb894393efb9bf42442d40a7addae6f5a1be99 Mon Sep 17 00:00:00 2001 From: atm-GregM <85485123+atm-GregM@users.noreply.github.com> Date: Thu, 25 Sep 2025 11:57:49 +0200 Subject: [PATCH] FIX check commande liste validate (#35479) --- htdocs/commande/list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/commande/list.php b/htdocs/commande/list.php index 442b3090955..96a420adfec 100644 --- a/htdocs/commande/list.php +++ b/htdocs/commande/list.php @@ -781,7 +781,7 @@ if ($action == 'validate' && $permissiontoadd && $objectclass !== null) { } else { $idwarehouse = 0; } - if ($objecttmp->valid($user, $idwarehouse)) { + if ($objecttmp->valid($user, $idwarehouse) > 0) { setEventMessages($langs->trans('hasBeenValidated', $objecttmp->ref), null, 'mesgs'); } else { setEventMessages($objecttmp->error, $objecttmp->errors, 'errors');