Fix: Delete order

This commit is contained in:
Laurent Destailleur 2010-02-20 15:20:10 +00:00
parent 459855a636
commit 770055cd26

View File

@ -1886,7 +1886,7 @@ class Commande extends CommonObject
$sql = "DELETE FROM ".MAIN_DB_PREFIX."element_element"; $sql = "DELETE FROM ".MAIN_DB_PREFIX."element_element";
$sql.= " WHERE fk_target = ".$this->id; $sql.= " WHERE fk_target = ".$this->id;
$sql.= " AND targettype = ".$this->element; $sql.= " AND targettype = '".$this->element."'";
if (! $this->db->query($sql) ) if (! $this->db->query($sql) )
{ {
$err++; $err++;