facture/card.php: replace redirection by = ''

This commit is contained in:
Thomas Negre 2022-03-24 11:09:39 +01:00
parent 7f527b85b0
commit 6dfad5d69f

View File

@ -306,8 +306,7 @@ if (empty($reshook)) {
$last_of_type = $object->willBeLastOfSameType();
if (empty($object->date_validation) && !$last_of_type[0]) {
setEventMessages($langs->transnoentities("ErrorInvoiceIsNotLastOfSameType", $object->ref, dol_print_date($object->date, 'day'), dol_print_date($last_of_type[1], 'day')), null, 'errors');
header('Location: '.$_SERVER["PHP_SELF"].'?facid='.$id);
exit;
$action = '';
}
}