diff --git a/htdocs/propal.class.php b/htdocs/propal.class.php index 980d232cbd0..8431d963d0f 100644 --- a/htdocs/propal.class.php +++ b/htdocs/propal.class.php @@ -504,8 +504,9 @@ class Propal extends CommonObject $sql.= "'".addslashes($this->note_public)."',"; $sql.= "'".$this->modelpdf."',".$this->db->idate($this->fin_validite).","; $sql.= " ".$this->cond_reglement_id.", ".$this->mode_reglement_id.","; - if ($conf->global->PROPALE_ADD_SHIPPING_DATE) $sql.= " ".$this->db->idate($this->date_livraison).","; - $sql.= "'".addslashes($this->ref_client)."')"; + $sql.= "'".addslashes($this->ref_client)."'"; + if ($conf->global->PROPALE_ADD_SHIPPING_DATE) $sql.= ", ".$this->db->idate($this->date_livraison); + $sql.= ")"; $resql=$this->db->query($sql); if ($resql)