More link is missing in pager

Created on 18 August 2023, over 1 year ago

Problem/Motivation

The "More link" won't render under the Views pager

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 Fixed
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 Fixed

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

Active

Version

10.1 โœจ

Component
Viewsย  โ†’

Last updated about 3 hours ago

Created by

๐Ÿ‡จ๐Ÿ‡ฆCanada francismak

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024