// clean useless INNER JOIN

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16021 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
aFolletete
2012-06-14 13:30:56 +00:00
parent 7b35975139
commit d7d2e08050
-1
View File
@@ -923,7 +923,6 @@ class ProductCore extends ObjectModel
$sql = 'SELECT p.*, product_shop.*, pl.* , t.`rate` AS tax_rate, m.`name` AS manufacturer_name, s.`name` AS supplier_name
FROM `'._DB_PREFIX_.'product` p
'.Shop::addSqlAssociation('product', 'p').'
INNER JOIN ps_product product_shop
LEFT JOIN `'._DB_PREFIX_.'product_lang` pl ON (p.`id_product` = pl.`id_product` '.Shop::addSqlRestrictionOnLang('pl').')
LEFT JOIN `'._DB_PREFIX_.'tax_rule` tr ON (product_shop.`id_tax_rules_group` = tr.`id_tax_rules_group`
AND tr.`id_country` = '.(int)Context::getContext()->country->id.'