Pagination not working for last page

Created on 27 May 2022, over 2 years ago
Updated 4 June 2024, 6 months ago

Problem/Motivation

Getting error on api call:
TypeError: Argument 1 passed to Drupal\project_browser\ProjectBrowser\Project::setProjectUsageTotal() must be of the type int, null given, called in web/modules/contrib/project_browser/src/ProjectBrowser/Project.php on line 47 in Drupal\project_browser\ProjectBrowser\Project->setProjectUsageTotal() (line 180 of modules/contrib/project_browser/src/ProjectBrowser/Project.php).

Steps to reproduce

Click last page in pagination.

Proposed resolution

Remaining tasks

  • ✅ File an issue about this project
  • ☐ Addition/Change/Update/Fix to this project
  • ☐ Testing to ensure no regression
  • ☐ Automated unit/functional testing coverage
  • ☐ Developer Documentation support on feature change/addition
  • ☐ User Guide Documentation support on feature change/addition
  • ☐ Code review from 1 Drupal core team member
  • ☐ Full testing and approval
  • ☐ Credit contributors
  • ☐ Review with the product owner
  • ☐ Release

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Closed: cannot reproduce

Version

1.0

Component

Code

Created by

🇮🇳India narendraR Jaipur, India

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.

  • 🇦🇺Australia sime Melbourne

    Unable to reproduce this. I also checked when there are exactly the right number of results to end perfectly on the last page (just checking for off-by-one errors, etc).

Production build 0.71.5 2024