Skip to content

Commit

Permalink
duration of fichinter rec
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic34 committed Oct 3, 2019
1 parent 723b88f commit ee42cd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/fichinter/class/fichinterrec.class.php
Expand Up @@ -155,7 +155,7 @@ public function create($user, $notrigger = 0)
$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");
Expand Down Expand Up @@ -271,6 +271,7 @@ public function fetch($rowid = 0, $ref = '', $ref_ext = '', $ref_int = '')
$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;
Expand Down

0 comments on commit ee42cd0

Please sign in to comment.