Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294347

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

$
0
0

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
See another user report in https://www.drupal.org/project/drupal/issues/3265798#comment-15159116

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.


Viewing all articles
Browse latest Browse all 294347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>