From e3be718a571627add1c1c6153d10a78cd4d87625 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 25 Jan 2013 12:37:03 +0100 Subject: [PATCH] Fix: wrong object name --- htdocs/fourn/facture/fiche.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/fourn/facture/fiche.php b/htdocs/fourn/facture/fiche.php index 99e1bf5da0a..936fbd08572 100644 --- a/htdocs/fourn/facture/fiche.php +++ b/htdocs/fourn/facture/fiche.php @@ -2078,7 +2078,7 @@ else $formmail->frommail = $user->email; $formmail->withfrom=1; $formmail->withto=empty($_POST["sendto"])?1:$_POST["sendto"]; - $formmail->withtosocid=$soc->id; + $formmail->withtosocid=$societe->id; $formmail->withtocc=1; $formmail->withtoccsocid=0; $formmail->withtoccc=$conf->global->MAIN_EMAIL_USECCC;