Fix: problème d'uniformisation des noms de variables

This commit is contained in:
Regis Houssin 2007-09-15 16:18:15 +00:00
parent a58b3160a3
commit 22a8f302cd
2 changed files with 2 additions and 0 deletions

View File

@ -399,6 +399,7 @@ class Contact
$this->fullname = trim($this->firstname . ' ' . $this->name); $this->fullname = trim($this->firstname . ' ' . $this->name);
$this->address = $obj->address; $this->address = $obj->address;
$this->adresse = $obj->address; // Todo: uniformiser le nom des variables
$this->cp = $obj->cp; $this->cp = $obj->cp;
$this->ville = $obj->ville; $this->ville = $obj->ville;
$this->fk_pays = $obj->fk_pays; $this->fk_pays = $obj->fk_pays;

View File

@ -1028,6 +1028,7 @@ class pdf_crabe extends ModelePDFFactures
$result=$object->fetch_contact($idcontact); $result=$object->fetch_contact($idcontact);
if ($result > 0) $receiver=$object->contact; if ($result > 0) $receiver=$object->contact;
$receiver=$object->contact; $receiver=$object->contact;
$receiver->nom = $receiver->fullname;
} }
} }
if (! $receiver) $receiver=$object->client; if (! $receiver) $receiver=$object->client;