From ee42cd000e13a364b861897ef8afdd5afec13b5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Thu, 3 Oct 2019 19:07:26 +0200 Subject: [PATCH] duration of fichinter rec --- htdocs/fichinter/class/fichinterrec.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/fichinter/class/fichinterrec.class.php b/htdocs/fichinter/class/fichinterrec.class.php index 4fabf64be49..f88653e70eb 100644 --- a/htdocs/fichinter/class/fichinterrec.class.php +++ b/htdocs/fichinter/class/fichinterrec.class.php @@ -155,7 +155,7 @@ class FichinterRec extends Fichinter $sql.= ", ".($this->socid >0 ? $this->socid : 'null'); $sql.= ", ".$conf->entity; $sql.= ", '".$this->db->idate($now)."'"; - $sql.= ", ".(!empty($fichintsrc->duree)?$fichintsrc->duree:'0'); + $sql.= ", ".(!empty($fichintsrc->duration)?$fichintsrc->duration:'0'); $sql.= ", ".(!empty($this->description)?("'".$this->db->escape($this->description)."'"):"null"); $sql.= ", ".(!empty($fichintsrc->note_private)?("'".$this->db->escape($fichintsrc->note_private)."'"):"null"); $sql.= ", ".(!empty($fichintsrc->note_public)?("'".$this->db->escape($fichintsrc->note_public)."'"):"null"); @@ -271,6 +271,7 @@ class FichinterRec extends Fichinter $this->ref = $obj->titre; $this->description = $obj->description; $this->datec = $obj->datec; + $this->duration = $obj->duree; $this->socid = $obj->fk_soc; $this->statut = 0; $this->fk_project = $obj->fk_projet;