From 22a8f302cd68864f4ace7b0244f97a58f54647cd Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 15 Sep 2007 16:18:15 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20probl=E8me=20d'uniformisation=20des=20no?= =?UTF-8?q?ms=20de=20variables?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/contact.class.php | 1 + htdocs/includes/modules/facture/pdf_crabe.modules.php | 1 + 2 files changed, 2 insertions(+) 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;