Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Enable workbench_moderation
Visit /admin/content
All pager links are borked
<a href="?status=All&type=All&title=&langcode=All&=Filter&page=0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0" title="Current page">
<span class="visually-hidden">
Current page
</span>1</a>
Check all those ,0s - happens with every pager on the site - including but not limited to
- search results
- taxonomy term views
Basically any page that uses the node param converter ends up in \Drupal\workbench_moderation\ModerationInformation::getLatestRevisionId and things get nasty
Patch coming
Proposed resolution
Use range()
instead of pager()
. We only want to limit the query, not initialize Drupal's pager stuff.
Remaining tasks
Review
User interface changes
None
API changes
None
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#2 | 2698085-pager-issues.patch | 2.3 KB | larowlan |
Comments
Comment #2
larowlanPatch
Comment #3
Crell CreditAttribution: Crell at Palantir.net for Acquia commentedGuh. Entity API...
Thanks, larowlan. I'll commit this probably tomorrow, definitely before the next beta.
Comment #4
larowlanActually, its DBTNG :)
Comment #5
larowlanActually, its the point where the two meet. Carry on.
Comment #6
larowlan