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 <eldy@destailleur.fr>
This commit is contained in:
kkhelifa-opendsi 2026-08-04 22:35:21 +02:00 committed by GitHub
parent f45d71a4b1
commit 6dfc8de4b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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