From b0c9670d1a91ca5b7c94b61de9e4b5b0ef5c2b89 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sun, 2 Feb 2003 15:14:50 +0000 Subject: [PATCH] Ajout indo dans actioncomm lors de l'envoi de la facture --- htdocs/compta/facture.php3 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/compta/facture.php3 b/htdocs/compta/facture.php3 index 709c2da6b94..bd59056b70b 100644 --- a/htdocs/compta/facture.php3 +++ b/htdocs/compta/facture.php3 @@ -145,6 +145,7 @@ if ($action == 'send') { $sendto = $soc->contact_get_email($HTTP_POST_VARS["destinataire"]); + $sendtoid = $HTTP_POST_VARS["destinataire"]; if (strlen($sendto)) { @@ -159,8 +160,10 @@ if ($action == 'send') if ( $mailfile->sendfile() ) { + + $sendto = htmlentities($sendto); - $sql = "INSERT INTO actioncomm (datea,fk_action,fk_soc,note,fk_facture) VALUES (now(), 9 ,$fac->socidp ,'Envoyée à $sendndto',$fac->id);"; + $sql = "INSERT INTO actioncomm (datea,fk_action,fk_soc,note,fk_facture, fk_contact,fk_user_author, label) VALUES (now(), 9 ,$fac->socidp ,'Envoyée à $sendto',$fac->id, $sendtoid, $user->id, 'Envoi Facture par mail');"; if (! $db->query($sql) ) {