// Replace shop->addSqlAssociation() by static call
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13620 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -103,7 +103,7 @@ class StatsProduct extends ModuleGraph
|
||||
FROM `'._DB_PREFIX_.'product` p
|
||||
'.Product::sqlStock('p', 0).'
|
||||
LEFT JOIN `'._DB_PREFIX_.'product_lang` pl ON p.`id_product` = pl.`id_product`'.Shop::addSqlRestrictionOnLang('pl').'
|
||||
'.$this->context->shop->addSqlAssociation('product', 'p').'
|
||||
'.Shop::addSqlAssociation('product', 'p').'
|
||||
'.(Tools::getValue('id_category') ? 'LEFT JOIN `'._DB_PREFIX_.'category_product` cp ON p.`id_product` = cp.`id_product`' : '').'
|
||||
WHERE pl.`id_lang` = '.(int)$id_lang.'
|
||||
'.(Tools::getValue('id_category') ? 'AND cp.id_category = '.(int)Tools::getValue('id_category') : '').'
|
||||
|
||||
Reference in New Issue
Block a user