From dbc54e9737ad88bca6c4399b3b56714f538f211d Mon Sep 17 00:00:00 2001 From: bMancone Date: Mon, 24 Oct 2011 16:23:26 +0000 Subject: [PATCH] // StockCover : fixed query git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9612 b9a71923-0436-4b27-9f14-aed3839534dd --- controllers/admin/AdminStockCoverController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/admin/AdminStockCoverController.php b/controllers/admin/AdminStockCoverController.php index 905173397..e6b2b3f06 100644 --- a/controllers/admin/AdminStockCoverController.php +++ b/controllers/admin/AdminStockCoverController.php @@ -149,7 +149,7 @@ class AdminStockCoverControllerCore extends AdminController INNER JOIN `'._DB_PREFIX_.'stock` s ON (s.id_product = a.id_product)'; $this->_where = 'AND s.id_product_attribute = 0'; 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_cur_period', $this->getCurrentCoveragePeriod());