Fix error message not shown

This commit is contained in:
Laurent Destailleur 2023-04-28 12:37:01 +02:00
parent 2e3e6f6899
commit cd949e9fa7

View File

@ -213,6 +213,7 @@ include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_array_fields.tpl.php';
$object->fields = dol_sort_array($object->fields, 'position'); $object->fields = dol_sort_array($object->fields, 'position');
$arrayfields = dol_sort_array($arrayfields, 'position'); $arrayfields = dol_sort_array($arrayfields, 'position');
$error = 0;
/* /*
@ -503,6 +504,7 @@ if (empty($reshook)) {
} else { } else {
$lineid = 0; $lineid = 0;
$error++; $error++;
$errors[] = $objecttmp->error;
break; break;
} }
// Defined the new fk_parent_line // Defined the new fk_parent_line