From 6dfc8de4b53dd4d25454f628a5449de0bd048ff0 Mon Sep 17 00:00:00 2001 From: kkhelifa-opendsi Date: Tue, 4 Aug 2026 22:35:21 +0200 Subject: [PATCH] FIX: Show error when clone order fail (#39382) * FIX: Show error when clone order fail * Fix missing variable * Fix foreach loop to reference correct object Updated foreach loop to use the correct object reference for lines. --------- Co-authored-by: Laurent Destailleur --- 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 658b9e0eafb..a087afbdd24 100644 --- a/htdocs/commande/card.php +++ b/htdocs/commande/card.php @@ -251,7 +251,7 @@ if (empty($reshook)) { header("Location: ".$_SERVER['PHP_SELF'].'?id='.$result); exit; } else { - setEventMessages($object->error, $object->errors, 'errors'); + setEventMessages($objectutil->error, $objectutil->errors, 'errors'); $action = ''; } }