Chosen pattern variant is not set as default value in pattern block form

Created on 13 November 2024, 9 days ago

Problem/Motivation

When adding a UI Pattern block using the Block Layout /admin/structure/block, the first time you apply the block settings it will save the value incl. the pattern variant. But if you edit the block the chosen pattern variant is not set as default value for the variant field in block form.

Steps to reproduce

  1. Go to /admin/structure/block and add a block in a region
  2. Search for an existing UI Patterns block which has variants
  3. Choose a variant and save the block
  4. Now edit the block
  5. The chosen variant is not shown

Proposed resolution

There is a typo in the variable name that store the configuration. Furthermore the data structure should be a nested array starting with the key 'pattern'.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇩🇰Denmark thomasmikkel

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