From c216bb30f8f9ae2873f8106cb39516f8c10ca54e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 2 Aug 2006 00:01:43 +0000 Subject: [PATCH] Fix: Chargement fiche intervention --- htdocs/fichinter/fichinter.class.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/htdocs/fichinter/fichinter.class.php b/htdocs/fichinter/fichinter.class.php index 344f280ee56..53095b26581 100644 --- a/htdocs/fichinter/fichinter.class.php +++ b/htdocs/fichinter/fichinter.class.php @@ -187,16 +187,18 @@ class Fichinter extends CommonObject } } - /* - * - * + /** + * \brief Charge en mémoire la fiche intervention + * \param rowid Id de la fiche à charger + * \return int <0 si ko, >0 si ok */ function fetch($rowid) { - $sql = "SELECT ref,note,fk_soc,fk_statut,duree,".$this->db->pdate(datei)." as di, fk_projet"; $sql.= " FROM ".MAIN_DB_PREFIX."fichinter WHERE rowid=".$rowid; + dolibarr_syslog("Fichinter.class::fetch rowid=$rowid sql=$sql"); + $resql=$this->db->query($sql); if ($resql) { @@ -208,8 +210,9 @@ class Fichinter extends CommonObject $this->date = $obj->di; $this->duree = $obj->duree; $this->ref = $obj->ref; - $this->note = stripslashes($obj->note); - $this->societe_id = $obj->fk_soc; + $this->note = $obj->note; + $this->socidp = $obj->fk_soc; + $this->societe_id = $obj->fk_soc; // A virer, obsolete $this->projet_id = $obj->fk_projet; $this->statut = $obj->fk_statut;