diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 293796c77a5..d3acac48bd4 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -3864,16 +3864,16 @@ else if ($id > 0 || ! empty($ref)) // By default if $action=='presend' $titreform='SendBillByMail'; $topicmail='SendBillRef'; - $action='send'; $modelmail='facture_send'; if ($action == 'prerelance') // For backward compatibility { $titrefrom='SendReminderBillByMail'; $topicmail='SendReminderBillRef'; - $action='relance'; $modelmail='facture_relance'; + $action='relance'; } + else $action='send'; $ref = dol_sanitizeFileName($object->ref); include_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';