From 57702a1fb1882e869d9ff26fa31e2683cf9cd236 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 12 Oct 2020 20:47:32 +0200 Subject: [PATCH] Retrieve commit a056d37f7255200ef0baf664a6b64516b2392dd9 --- htdocs/fourn/class/fournisseur.commande.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/fourn/class/fournisseur.commande.class.php b/htdocs/fourn/class/fournisseur.commande.class.php index 4521eda40ac..ab489d02578 100644 --- a/htdocs/fourn/class/fournisseur.commande.class.php +++ b/htdocs/fourn/class/fournisseur.commande.class.php @@ -1344,7 +1344,7 @@ class CommandeFournisseur extends CommonOrder $sql .= ", ".$conf->entity; $sql .= ", ".$this->socid; $sql .= ", ".($this->fk_project > 0 ? $this->fk_project : "null"); - $sql .= ", '".$this->db->idate($now)."'"; + $sql .= ", '".$this->db->idate($date)."'"; $sql .= ", ".($this->date_livraison ? "'".$this->db->idate($this->date_livraison)."'" : "null"); $sql .= ", ".$user->id; $sql .= ", ".self::STATUS_DRAFT;