Fix: Delete order
This commit is contained in:
parent
459855a636
commit
770055cd26
@ -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++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user