From 3b393e818a786b92b6a67de96cd909ca1662fe8f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 18 Jul 2019 14:17:29 +0200 Subject: [PATCH] Fix missing entity property into fetch --- htdocs/projet/class/project.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/projet/class/project.class.php b/htdocs/projet/class/project.class.php index 6b1d5e0a07f..cbee8d181ca 100644 --- a/htdocs/projet/class/project.class.php +++ b/htdocs/projet/class/project.class.php @@ -440,7 +440,7 @@ class Project extends CommonObject $sql = "SELECT rowid, ref, title, description, public, datec, opp_amount, budget_amount,"; $sql.= " tms, dateo, datee, date_close, fk_soc, fk_user_creat, fk_user_modif, fk_user_close, fk_statut, fk_opp_status, opp_percent,"; - $sql.= " note_private, note_public, model_pdf, bill_time"; + $sql.= " note_private, note_public, model_pdf, bill_time, entity"; $sql.= " FROM " . MAIN_DB_PREFIX . "projet"; if (! empty($id)) { @@ -488,6 +488,7 @@ class Project extends CommonObject $this->budget_amount = $obj->budget_amount; $this->modelpdf = $obj->model_pdf; $this->bill_time = (int) $obj->bill_time; + $this->entity = $obj->entity; $this->db->free($resql);