[-] BO: Fix PSCFV-3782 stock coverage listing

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17045 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2012-08-28 10:02:36 +00:00
parent 2296ab35cd
commit 1778c4e75c

View File

@@ -191,6 +191,7 @@ class AdminStockCoverControllerCore extends AdminController
$this->_join = 'LEFT JOIN `'._DB_PREFIX_.'product_attribute` pa ON (pa.id_product = a.id_product)
'.Shop::addSqlAssociation('product_attribute', 'pa', false).'
INNER JOIN `'._DB_PREFIX_.'stock` s ON (s.id_product = a.id_product)';
$this->_group = 'GROUP BY a.id_product';
self::$currentIndex .= '&coverage_period='.(int)$this->getCurrentCoveragePeriod().'&warn_days='.(int)$this->getCurrentWarning();
if ($this->getCurrentCoverageWarehouse() != -1)