Important: The pagination of the profile list falls back to 10 per page
Description
The profile list and list-and-detail plugins read the number of profiles per
page from Results per Page and the number of page links from
Number of Links. A field saved empty replaced the value of the
site, and the list handed 0 to the paginator. With Pagination
switched on, the content element then ended the request with
Invalid 1573061766, "Argument $itemsPerPage must be
greater than 0", instead of rendering the list. An empty
Number of Links did not fail, it gave the page navigation the 10
links of
georgringer/numbered-pagination
instead of the value of
the site.
Three changes follow:
pagination.andresults Per Page pagination.are listed innumber Of Links plugin.. A field saved empty or astx_ academicpersons. ignore Flex Form Settings If Empty 0takes the value ofplugin.andtx_ academicpersons. pagination. results Per Page plugin.. A value the editor entered still wins.tx_ academicpersons. pagination. number Of Links - A number of profiles per page below
1falls back to10, whether it comes from the content element, from the site setting or from TypoScript, and a number of links below1falls back to5, the shipped default. - The TypoScript constant
plugin., and the site setting of the same name where a site uses the site set, default totx_ academicpersons. pagination. results Per Page 10instead of1.
Impact
A paginated profile list with an empty Results per Page renders
again, with the number of profiles per page of the site, 10 unless the site
sets a value of its own.
A content element whose stored options lack the field took the value of the site before as well: one saved before the field existed, one whose form hides the field through page TSconfig, or one written without the backend form, by an import for example. Such a list shows 10 profiles per page instead of 1, unless the site sets a value of its own.
Affected Installations
Installations with a profile list or list-and-detail plugin that has
Pagination switched on and Results per Page or
Number of Links empty, and installations that relied on the shipped
default of one profile per page. To keep that, set the constant or the site
setting
plugin. to
1.