fix pgsql warning date

This commit is contained in:
Florian Henry
2013-07-10 10:35:10 +02:00
parent 4aa966f7ad
commit b9bfccd0e2

View File

@@ -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)."'";