This commit is contained in:
ldestailleur
2025-04-07 14:01:39 +02:00
parent 53b2e257fc
commit 534aec349c

View File

@@ -105,8 +105,8 @@ $pageprev = $page - 1;
$pagenext = $page + 1;
$object = new FactureFournisseurRec($db);
if (($id > 0 || $title) && $action != 'create' && $action != 'add') {
$ret = $object->fetch($id, $title);
if (($id > 0 || $ref) && $action != 'create' && $action != 'add') {
$ret = $object->fetch($id, $ref);
if (! $ret) {
setEventMessages($langs->trans("ErrorRecordNotFound"), null, 'errors');
}