[-] FO : FixBug #PSCFV-7723 Bad manufacturers list pagination
This commit is contained in:
@@ -113,6 +113,9 @@ class ManufacturerControllerCore extends FrontController
|
||||
{
|
||||
$data = Manufacturer::getManufacturers(true, $this->context->language->id, true, false, false, false);
|
||||
$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);
|
||||
|
||||
foreach ($data as &$item)
|
||||
@@ -129,4 +132,4 @@ class ManufacturerControllerCore extends FrontController
|
||||
else
|
||||
$this->context->smarty->assign('nbManufacturers', 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user