mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
adding twig extensions to select how many items per page
* twig anchor: {{ chill_items_per_page(pagination) }} * select field changed with javascript event listener
This commit is contained in:
@@ -70,8 +70,6 @@ class ThirdPartyController extends Controller
|
||||
$nbThirdParties = $repository->countByMemberOfCenters($centers);
|
||||
$pagination = $this->paginatorFactory->create($nbThirdParties);
|
||||
|
||||
$pagination->setItemsPerPage(20);
|
||||
|
||||
$thirdParties = $repository->findByMemberOfCenters(
|
||||
$centers,
|
||||
$pagination->getCurrentPage()->getFirstItemNumber(),
|
||||
|
Reference in New Issue
Block a user