Ajax error when adding element in new form

Created on 19 September 2024, 10 months ago

Problem/Motivation

When adding a new element to a form, the add element form does not appear due to an ajax error.
Some digging shows the origin of the error is in WebformManagedFileBase (/src/Plugin/WebformElement/WebformManagedFileBase.php)

Steps to reproduce

Somewhat hard to reproduce, but apparently the $element['#webform_key'] is not available in all situations.

Proposed resolution

Check if $element['#webform_key'] is available.

Remaining tasks

Review.

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Active

Version

6.2

Component

Code

Created by

🇳🇱Netherlands johankleene Helmond

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

Comments & Activities

Production build 0.71.5 2024