commentaires du code en anglais

This commit is contained in:
Vincent de Grandpré 2022-08-14 09:48:49 -04:00
parent 142f242267
commit 7a22e6f339

View File

@ -668,14 +668,14 @@ if (empty($reshook)) {
setEventMessages($object->error, $object->errors, 'errors');
} else {
if ($object->error == 'ErrorProductAlreadyExists') {
// permet une action personnallisée quand il y a tentative d'ajouter un produit
// avec un numéro de référence existant.
// allow to hook on ErrorProductAlreadyExists in any module
$reshook = $hookmanager->executeHooks('onProductAlreadyExists', $parameters, $object, $action);
if ($reshook < 0) {
setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
}
if ($object->error) {
// L'erreur de l'objet a pu être effacée par la fonction
// check again to prevent translation issue,
// as error may have been cleared in hook function
setEventMessages($langs->trans($object->error), null, 'errors');
}
} else {