diff --git a/htdocs/contact.class.php b/htdocs/contact.class.php index fecb832c9ca..f2429148d20 100644 --- a/htdocs/contact.class.php +++ b/htdocs/contact.class.php @@ -399,6 +399,7 @@ class Contact $this->fullname = trim($this->firstname . ' ' . $this->name); $this->address = $obj->address; + $this->adresse = $obj->address; // Todo: uniformiser le nom des variables $this->cp = $obj->cp; $this->ville = $obj->ville; $this->fk_pays = $obj->fk_pays; diff --git a/htdocs/includes/modules/facture/pdf_crabe.modules.php b/htdocs/includes/modules/facture/pdf_crabe.modules.php index 9aadbbb9bd0..b0df392c2b3 100644 --- a/htdocs/includes/modules/facture/pdf_crabe.modules.php +++ b/htdocs/includes/modules/facture/pdf_crabe.modules.php @@ -1028,6 +1028,7 @@ class pdf_crabe extends ModelePDFFactures $result=$object->fetch_contact($idcontact); if ($result > 0) $receiver=$object->contact; $receiver=$object->contact; + $receiver->nom = $receiver->fullname; } } if (! $receiver) $receiver=$object->client;