Fix: Gestion plus correcte de la date (au format date et non chaine)

This commit is contained in:
Laurent Destailleur
2006-05-31 23:22:52 +00:00
parent 706f11a84f
commit 1e166eda5d
2 changed files with 19 additions and 12 deletions

View File

@@ -1331,7 +1331,8 @@ class Commande
{
if ($user->rights->commande->creer)
{
$sql = "UPDATE ".MAIN_DB_PREFIX."commande SET date_livraison = '".$date_livraison."'";
$sql = "UPDATE ".MAIN_DB_PREFIX."commande";
$sql.= " SET date_livraison = ".' '.($this->date_livraison?$this->db->idate($this->date_livraison):'null');
$sql.= " WHERE rowid = ".$this->id." AND fk_statut = 0";
if ($this->db->query($sql) )