[-] FO : FixBug #PSCFV-7723 Bad manufacturers list pagination

This commit is contained in:
Jérôme Nadaud committed 2013-07-18 17:09:44 +02:00
1 parent 3693349643
commit dd78e97b4a
1 file changed
+3
@@ -113,6 +113,9 @@ class ManufacturerControllerCore extends FrontController
{ {
$data = Manufacturer::getManufacturers(true, $this->context->language->id, true, false, false, false); $data = Manufacturer::getManufacturers(true, $this->context->language->id, true, false, false, false);
$nbProducts = count($data); $nbProducts = count($data);
$this->n = abs((int)(Tools::getValue('n', Configuration::get('PS_PRODUCTS_PER_PAGE'))));
$this->p = abs((int)(Tools::getValue('p', 1)));
$data = Manufacturer::getManufacturers(true, $this->context->language->id, true, $this->p, $this->n, false);
$this->pagination($nbProducts); $this->pagination($nbProducts);
foreach ($data as &$item) foreach ($data as &$item)