Pager and filtering by id doesn't work

Created on 17 September 2025, 28 days ago

Problem/Motivation

Currently the module implements a custom pager that has some problems. When trying to go to the second page, DivisionByZeroError error is thrown.

`DivisionByZeroError: Division by zero in Drupal\paragraphs_list_filter\Entity\ListBuilder\ParagraphsListFilterBuilder->renderPager() (line 99 of modules/contrib/paragraphs_list_filter/src/Entity/ListBuilder/ParagraphsListFilterBuilder.php). 

Additionally, filter by id also doesn't work. When selected, many warnings about missing array keys are shown, but no results.

Warning: Undefined array key "id" in Drupal\paragraphs_list_filter\Entity\ListBuilder\ParagraphsListFilterBuilder->load() (line 68 of modules/contrib/paragraphs_list_filter/src/Entity/ListBuilder/ParagraphsListFilterBuilder.php).

Proposed resolution

Refactor module to use standard core pager element and entity query for fetching filtered results.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇵🇱Poland wotnak

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024