bugfix : le sujet du mail envoi facture si modifi n'tait pas pris en compte

This commit is contained in:
Andre Cianfarani 2006-02-13 14:21:46 +00:00
parent cda4fa7016
commit 6893f33e4e

View File

@ -473,7 +473,10 @@ if ($_POST['action'] == 'send' || $_POST['action'] == 'relance')
$message = $_POST['message'];
if ($_POST['action'] == 'send')
{
$subject = $langs->trans('Bill').' '.$fac->ref;
if(strlen($_POST['subject']))
$subject = $_POST['subject'];
else
$subject = $langs->trans('Bill').' '.$fac->ref;
$actiontypeid=9;
$actionmsg ='Mail envoyé par '.$from.' à '.$sendto.'.<br>';
if ($message) {