// BugFix on counting stock instant states lines

This commit is contained in:
mDeflotte
2011-10-25 13:31:16 +00:00
parent c4ba398677
commit b422da7d2b
@@ -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()');
}
}