From 70bd56bea88b5ca9fa11763882e8f9ba346f9156 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 16 Feb 2012 16:26:55 +0100 Subject: [PATCH] Fix: remove alias --- htdocs/product/class/product.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index d6495ce24fd..b63dbdc9dbb 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -1022,7 +1022,7 @@ class Product extends CommonObject if ($id) $sql.= " WHERE rowid = '".$id."'"; 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)."'"; else if ($ref_ext) $sql.= " AND ref_ext = '".$this->db->escape($ref_ext)."'"; }