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";