Unable to Add another state due to Ajax error

Created on 18 September 2023, 9 months ago
Updated 19 April 2024, 2 months ago

Problem/Motivation

When I try to 'add another state' on the Conditions tab the following error is shown in console - 'An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /admin/structure/webform/manage/test/element/add/checkbox?...
and in logs - Error: [] operator not supported for strings in Drupal\webform\Element\WebformElementStates::addStateSubmit() (line 589 of modules/contrib/webform/src/Element/WebformElementStates.php).

Steps to reproduce

1. Drupal 10.0.9 and webform 6.2.0-beta6
2. Create a new webform
3. Add element
4. Choose any element (for example Checkbox)
5. Go to the Conditions tab
6. Remove the default empty State
7. Click Add another state
8. Nothing happens
9. Check the browser console and 'Recent log messages'

🐛 Bug report
Status

Fixed

Version

6.2

Component

Code

Created by

🇺🇦Ukraine loon Lutsk

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024