TypeError when editing any element

Created on 25 January 2023, over 1 year ago
Updated 23 October 2023, 8 months ago

Problem/Motivation

When I go to edit any element and save it, I get the type error Argument #1 ($array) must be of type array, string given in array_values() (line 63 of /app/web/modules/contrib/webform/src/Element/WebformPermissions.php) in dblog. The offending line is $value = array_values($form_state->getValue($element['#parents'], []));.
Drupal version: 9.3.22
PHP version: 8.0.27
Webform version: 6.1.3

Steps to reproduce

Go to any webform, edit any element and save it.

Proposed resolution

N/A

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Fixed

Version

6.2

Component

Code

Created by

🇹🇷Turkey Kartagis Istanbul

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

Comments & Activities

Production build 0.69.0 2024