LessThan1MaxPerPageException on List page with All selected

Hi,
I ran into this on PHPMaker 2026.12.
On all of my list pages, if I set "Records per page" to All and then run a
search that returns no records, the page crashes instead of showing the
usual "No records found" message:
Pagerfanta\Exception\LessThan1MaxPerPageException
in vendor/pagerfanta/pagerfanta/lib/Core/Pagerfanta.php (line 140)
in vendor/pagerfanta/pagerfanta/lib/Core/Pagerfanta.php -> checkMaxPerPage (line 131)
in vendor/pagerfanta/pagerfanta/lib/Core/Pagerfanta.php -> filterMaxPerPage (line 117)
Pagerfanta->setMaxPerPage() in src/Pager.php (line 46)
43. $adapter = new NullAdapter($RecordCount);
44. $this->pager = new Pagerfanta($adapter);
45. if ($PageSize < 1) {
46. $this->pager->setMaxPerPage($RecordCount);
47. } else {
48. $this->pager->setMaxPerPage($PageSize);
It only breaks with All selected.
To reproduce:

  1. open any list page
  2. set Records per page to All
  3. search for something that doesn't exist

Standard project, no custom code involved on that page.
Thanks

Try latest template (Tools -> Update Template)

Solved, thank you very much!