// StockCover : fixed query
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9612 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
9ab291669f
commit
dbc54e9737
1 file changed
+1
-1
@@ -149,7 +149,7 @@ class AdminStockCoverControllerCore extends AdminController
|
|||||||
INNER JOIN `'._DB_PREFIX_.'stock` s ON (s.id_product = a.id_product)';
|
INNER JOIN `'._DB_PREFIX_.'stock` s ON (s.id_product = a.id_product)';
|
||||||
$this->_where = 'AND s.id_product_attribute = 0';
|
$this->_where = 'AND s.id_product_attribute = 0';
|
||||||
if ($this->getCurrentCoverageWarehouse() != -1)
|
if ($this->getCurrentCoverageWarehouse() != -1)
|
||||||
$this->_where .= 'AND s.id_warehouse = '.$this->getCurrentCoverageWarehouse();
|
$this->_where .= ' AND s.id_warehouse = '.$this->getCurrentCoverageWarehouse();
|
||||||
|
|
||||||
$this->context->smarty->assign('stock_cover_periods', $this->stock_cover_periods);
|
$this->context->smarty->assign('stock_cover_periods', $this->stock_cover_periods);
|
||||||
$this->context->smarty->assign('stock_cover_cur_period', $this->getCurrentCoveragePeriod());
|
$this->context->smarty->assign('stock_cover_cur_period', $this->getCurrentCoveragePeriod());
|
||||||
|
|||||||
Reference in new issue
Block a user