diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index 499a332e792..d57699b998e 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -638,7 +638,7 @@ class Commande extends CommonOrder $sql.= ")"; $sql.= " VALUES ('(PROV)',".$this->socid.", '".$this->db->idate($now)."', ".$user->id; $sql.= ", ".($this->fk_project?$this->fk_project:"null"); - $sql.= ", ".$this->db->idate($date); + $sql.= ", '".$this->db->idate($date)."'"; $sql.= ", ".($this->source>=0 && $this->source != '' ?$this->source:'null'); $sql.= ", '".$this->db->escape($this->note_private)."'"; $sql.= ", '".$this->db->escape($this->note_public)."'";