2
0
forked from Wavyzz/dolibarr

Fix: sql syntax error (missing ' on date)

This commit is contained in:
Laurent Destailleur
2014-06-25 20:07:21 +02:00
parent ffd27f2d49
commit 1e6e5da925

View File

@@ -484,7 +484,7 @@ class Commande extends CommonOrder
$sql = 'UPDATE '.MAIN_DB_PREFIX.'commande';
$sql.= ' SET fk_statut = 3,';
$sql.= ' fk_user_cloture = '.$user->id.',';
$sql.= ' date_cloture = '.$this->db->idate($now);
$sql.= " date_cloture = '".$this->db->idate($now)."'";
$sql.= ' WHERE rowid = '.$this->id.' AND fk_statut > 0';
if ($this->db->query($sql))