BulkFormEntityListBuilder breaks pager

Created on 5 March 2025, about 1 month ago

Problem/Motivation

When we use BulkFormEntityListBuilder for entity, it always shows the first page, even if the page parameter is not 0
It happens because we use $this->load(); in two places during the rendering:

  1. BulkFormEntityListBuilder::render
  2. BulkFormEntityListBuilder::buildForm

So, the core EntityListBuilder::getEntityListQuery sets pager two times:
$query->pager($this->limit);
This means that PageManager think that we have two different pages on the list. So, for the first call of $this->load(); in BulkFormEntityListBuilder::render pager implements correctly but in BulkFormEntityListBuilder::buildForm - doesn't

Proposed resolution

Class must call $this->load(); only once during the render process.

πŸ› Bug report
Status

Active

Version

1.0

Component

Core integration

Created by

πŸ‡ΊπŸ‡¦Ukraine HitchShock Ukraine

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