"Comments per page" setting cannot be configured to "all comments"

Created on 17 July 2018, almost 6 years ago
Updated 4 May 2023, about 1 year ago

Problem/Motivation

"Comments per page" setting cannot be configured to show "all comments" also if the dockbook of CommentStorageInterface::loadThread says:

   * @param int $comments_per_page
   *   (optional) The amount of comments to display per page.
   *   Defaults to 0, which means show all comments.

I can't set 0 for "Comments per page" due to hardcoded "min" on form element (introduced with #2239369: "Comments per page" setting cannot be configured to be larger than 300 and modified with #2906298: Comments per page number validation )

Proposed resolution

I think we could set "min" as 0 for permit to show all comments without pager.

In the next comment the patches for 8.7.x and 8.5.x

🐛 Bug report
Status

Fixed

Version

10.1

Component
Comment 

Last updated 2 days ago

Created by

🇮🇹Italy robertom

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024