// Fix // Fix left join on product_attribute_shop

This commit is contained in:
rMalie
2012-04-23 13:29:24 +00:00
parent 441dc97524
commit 683c9d40b0
6 changed files with 7 additions and 11 deletions
@@ -189,7 +189,7 @@ class AdminStockCoverControllerCore extends AdminController
// query
$this->_select = 'a.id_product as id, COUNT(pa.id_product_attribute) as variations, SUM(s.usable_quantity) as stock';
$this->_join = 'LEFT JOIN `'._DB_PREFIX_.'product_attribute` pa ON (pa.id_product = a.id_product)
'.Shop::addSqlAssociation('product_attribute', 'pa').'
'.Shop::addSqlAssociation('product_attribute', 'pa', false).'
INNER JOIN `'._DB_PREFIX_.'stock` s ON (s.id_product = a.id_product)';
self::$currentIndex .= '&coverage_period='.(int)$this->getCurrentCoveragePeriod().'&warn_days='.(int)$this->getCurrentWarning();