More link is missing in pager when using the "Some" pager and there are more records than shown

Created on 18 August 2023, 10 months ago
Updated 29 May 2024, 25 days ago

Problem/Motivation

The "More link" won't render under the Views pager when using the "some" pager and there are more records.

In file web/core/modules/views/src/Plugin/views/pager/Some.php, the function postExecute() overwrite the total_items, which was set correctly in file web/core/modules/views/src/Plugin/views/pager/PagerPluginBase.php, function executeCountQuery().

This bug could be introduced by https://www.drupal.org/project/drupal/issues/3265798 ๐Ÿ› [view:total-rows] problem in Display a 'Specified number of items' pager RTBC
See another user report in https://www.drupal.org/project/drupal/issues/3265798#comment-15159116 ๐Ÿ› [view:total-rows] problem in Display a 'Specified number of items' pager RTBC

Steps to reproduce

  1. Create a View with more than 3 records
  2. Under the "Pager" option, select "Display a specified number of items" and set "3" items for "Use pager"
  3. select "Yes" for "More link"

You cannot see the more link in the preview. To enforce, you must use "Always display the more link" in the "More link" setting.

๐Ÿ› Bug report
Status

Needs work

Version

11.0 ๐Ÿ”ฅ

Component
Viewsย  โ†’

Last updated 37 minutes ago

Created by

๐Ÿ‡จ๐Ÿ‡ฆCanada francismak

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

Comments & Activities

Production build 0.69.0 2024