Notice on block config form

Created on 3 December 2020, about 4 years ago
Updated 3 October 2023, over 1 year ago

Problem/Motivation

Notice: Undefined index: pattern in Drupal\ui_patterns_blocks\PatternBlockFormAlter->getDefaultValue() (line 153 of modules/contrib/ui_patterns_blocks/src/PatternBlockFormAlter.php).

Steps to reproduce

Proposed resolution

We could just test for the key. But the underlying issue is that we're working with data from form fields that are not designd to be in a '#tree' => TRUE context and hence getting data that has extra nesting and cruft.

Better to fix that issue.

Options:

  1. Add validation to form element to fix up data. Preferred.
  2. Act at entity presave to fix up data.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇨🇦Canada nedjo

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.71.5 2024