Skip to content
Snippets Groups Projects
Commit 70bd56be authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: remove alias

parent 5d89d5d7
No related branches found
No related tags found
No related merge requests found
...@@ -1022,7 +1022,7 @@ class Product extends CommonObject ...@@ -1022,7 +1022,7 @@ class Product extends CommonObject
if ($id) $sql.= " WHERE rowid = '".$id."'"; if ($id) $sql.= " WHERE rowid = '".$id."'";
else else
{ {
$sql.= " WHERE p.entity IN (".getEntity($this->element, 1).")"; $sql.= " WHERE entity IN (".getEntity($this->element, 1).")";
if ($ref) $sql.= " AND ref = '".$this->db->escape($ref)."'"; if ($ref) $sql.= " AND ref = '".$this->db->escape($ref)."'";
else if ($ref_ext) $sql.= " AND ref_ext = '".$this->db->escape($ref_ext)."'"; else if ($ref_ext) $sql.= " AND ref_ext = '".$this->db->escape($ref_ext)."'";
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment