Error when saving block field reference settings when the plugin has context

Created on 30 November 2022, over 1 year ago
Updated 10 May 2023, about 1 year ago

I've got a simple block plugin that has a node context. I've added it to a paragraph type that has a block field reference. The block itself works OK, however when saving the settings, I am getting the following error:

InvalidArgumentException: The configuration property default_value.0.settings.context_mapping.node doesn't exist. in Drupal\Core\Config\Schema\ArrayElement->get() (line 76 of core/lib/Drupal/Core/Config/Schema/ArrayElement.php).

I think the issue has been reported with "several flavours" but none of the patches / workarounds have worked for me, it seems that the form doesn't check for the right structure on BlockFieldWidget.

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain pcambra Spain, πŸ‡ͺπŸ‡Ί

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.

Production build 0.69.0 2024