From e7c00047d193832847125f440414c7d8e27eccfb Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 8 Jun 2006 16:58:21 +0000 Subject: [PATCH] =?UTF-8?q?on=20r=E9cup=E8re=20le=20nom=20et=20pr=E9nom=20?= =?UTF-8?q?de=20l'auteur=20du=20bon=20de=20livraison?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/livraison/livraison.class.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/htdocs/livraison/livraison.class.php b/htdocs/livraison/livraison.class.php index 399b62c6237..dc04f3edcf4 100644 --- a/htdocs/livraison/livraison.class.php +++ b/htdocs/livraison/livraison.class.php @@ -229,6 +229,22 @@ class Livraison $this->modelpdf = $obj->model_pdf; $this->db->free(); + if ($this->user_author_id) + { + $sql = "SELECT name, firstname"; + $sql.= " FROM ".MAIN_DB_PREFIX."user"; + $sql.= " WHERE rowid = ".$this->user_author_id; + + $resqluser = $this->db->query($sql); + + if ($resqluser) + { + $obju = $this->db->fetch_object($resqluser); + $this->user_author_name = $obju->name; + $this->user_author_firstname = $obju->firstname; + } + } + if ($this->statut == 0) $this->brouillon = 1; $file = $conf->livraison->dir_output . "/" .get_exdir($livraison->id) . "/" . $this->id.".pdf";