Issue when only override is items_per_page

Created on 1 April 2025, 4 days ago

Problem/Motivation

When a view only allows the items_per_page override an error occurs when saving the block.
Error is the following:
Warning: Undefined array key "YOUR BLOCK ID" in Drupal\views_block_override\Plugin\views\display\ViewsBlockOverride->blockSubmit() (line 310 of modules/contrib/views_block_override/src/Plugin/views/display/ViewsBlockOverride.php).

This is because the code block settings do not get added in the same way to the config form so no custom plugin override is available in the $form array.

Steps to reproduce

Create a custom views block override block and only allow the items_per_page to be overridden.
This wil result in the error listed above when saving the block on your page.

Proposed resolution

Check for the availability of the custom plugin override before looping over the overrides.

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.2

Component

Code

Created by

🇧🇪Belgium LRoels Ghent

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