From d21e3d37ac2273ed0cc28374541b8779189f5fec Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Tue, 25 Oct 2011 13:31:16 +0000 Subject: [PATCH] // BugFix on counting stock instant states lines git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9627 b9a71923-0436-4b27-9f14-aed3839534dd --- controllers/admin/AdminStockInstantStateController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/admin/AdminStockInstantStateController.php b/controllers/admin/AdminStockInstantStateController.php index 2ce1df339..2f74c2fed 100644 --- a/controllers/admin/AdminStockInstantStateController.php +++ b/controllers/admin/AdminStockInstantStateController.php @@ -245,6 +245,8 @@ class AdminStockInstantStateControllerCore extends AdminController LIMIT '.(int)$start.','.(int)$limit; $this->_list = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($query); + $this->_listTotal = Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue('SELECT FOUND_ROWS()'); + $manager = StockManagerFactory::getManager(); foreach ($this->_list as &$row) @@ -260,8 +262,6 @@ class AdminStockInstantStateControllerCore extends AdminController true ); } - - $this->_listTotal = Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue('SELECT FOUND_ROWS()'); } }