Fix: Pb date intervention
This commit is contained in:
parent
c6cc4e0c06
commit
21130cdf36
@ -103,7 +103,9 @@ class Fichinter extends CommonObject
|
|||||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."fichinter (fk_soc, datei, datec, ref, fk_user_author, description, model_pdf";
|
$sql = "INSERT INTO ".MAIN_DB_PREFIX."fichinter (fk_soc, datei, datec, ref, fk_user_author, description, model_pdf";
|
||||||
if ($this->projet_id) $sql.= ", fk_projet";
|
if ($this->projet_id) $sql.= ", fk_projet";
|
||||||
$sql.= ") ";
|
$sql.= ") ";
|
||||||
$sql .= " VALUES (".$this->socid.", ".$this->date.", now(), '".$this->ref."', ".$this->author;
|
$sql.= " VALUES (".$this->socid.",";
|
||||||
|
$sql.= " ".$this->db->idate($this->date).",";
|
||||||
|
$sql.= " now(), '".$this->ref."', ".$this->author;
|
||||||
$sql.= ", '".addslashes($this->description)."', '".$this->modelpdf."'";
|
$sql.= ", '".addslashes($this->description)."', '".$this->modelpdf."'";
|
||||||
if ($this->projet_id) $sql .= ", ".$this->projet_id;
|
if ($this->projet_id) $sql .= ", ".$this->projet_id;
|
||||||
$sql.= ")";
|
$sql.= ")";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user