Settings submit function from views_block_override not loaded

Created on 24 March 2023, almost 2 years ago

Problem/Motivation

ViewsBlockOverride::blockSubmit function is not called when block submitted via Gutenberg. The way the settings form is rendered in Gutenberg's BlockSettingsForm doesn't pick up the blockSubmit function from the class.

Steps to reproduce

- Add a Views block of display type 'Block with overrides' which has a configurable sort.
- Add above block to a node using Gutenberg Editor and try to modify settings.
- Note that the ViewsBlockOverride::blockSubmit function doesn't get called, so the data handling there isn't done, so the settings aren't what views_block_override expects.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Active

Version

2.0

Component

Code

Created by

🇵🇹Portugal dubois

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

Comments & Activities

  • Issue created by @dubois
  • 🇵🇹Portugal dubois

    I'm not sure if this is a bug as my I've managed to get quite confused digging into how these two modules interact. Would appreciate someone a big more familiar with Gutenberg's handling of blocks/forms from other modules taking a look.

Production build 0.71.5 2024