From 918a89cb027621eb0ab4f02b4c53c0675c23f57a Mon Sep 17 00:00:00 2001 From: activdev Date: Thu, 11 May 2006 17:38:32 +0000 Subject: [PATCH] =?UTF-8?q?BugFix:=20Plantage=20quand=20essai=20de=20cr=E9?= =?UTF-8?q?er=20une=20propale=20depuis=20une=20autre=20n'ayant=20pas=20d'a?= =?UTF-8?q?dresse=20de=20livraison.=20Modification=20m=E9thode=20Propal::c?= =?UTF-8?q?reate=5Ffrom?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/propal.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/propal.class.php b/htdocs/propal.class.php index 83b4811884e..82bf0fd8934 100644 --- a/htdocs/propal.class.php +++ b/htdocs/propal.class.php @@ -410,7 +410,7 @@ class Propal */ function create() { - global $langs,$conf; + global $langs,$conf; // Définition paramètres $this->fin_validite = $this->datep + ($this->duree_validite * 24 * 3600); @@ -1660,7 +1660,7 @@ class Propal $sql.= "'".addslashes($this->note)."',"; $sql.= "'".addslashes($this->note_public)."',"; $sql.= "'$this->modelpdf',".$this->db->idate($this->fin_validite).","; - $sql.= " $this->cond_reglement_id, $this->mode_reglement_id, '".$this->date_livraison."', $this->adresse_livraison_id)"; + $sql.= " $this->cond_reglement_id, $this->mode_reglement_id, '".$this->date_livraison."', '$this->adresse_livraison_id')"; $resql=$this->db->query($sql); if ($resql) @@ -1718,7 +1718,7 @@ class Propal else { $this->error=$this->db->error(); - dolibarr_syslog("Propal::Create -1 ".$this->error); + dolibarr_syslog("Propal::Create_from -1 ".$this->error); $this->db->rollback(); return -1; }