mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
Fix: sql syntax error (missing ' on date)
This commit is contained in:
@@ -483,7 +483,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))
|
||||
|
||||
Reference in New Issue
Block a user