having a Card on the Webform leads to "TypeError: Illegal offset type in...(line 109 of WebformContentCreatorUtilities.php)"

Created on 23 March 2023, over 1 year ago
Updated 21 April 2023, over 1 year ago

Problem/Motivation

When a Webform has Card(s), when trying to Manage Fields on a WCC Configuration - it breaks with "TypeError: Illegal offset type in...(line 109 of WebformContentCreatorUtilities.php)" error

Steps to reproduce

Create a Webform with a Card and a few fields. Create a Content Type with similar fields. Add Webform Content Creator Configuration for the webform and content type in question. Attempt to "manage fields" - observe the error

Proposed resolution

need to add 'webform_card' entry to $layoutElements array at the beginning of buildTree(...) function in WebformContentCreatorUtilities.php

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: duplicate

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States oivanov

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

Comments & Activities

Production build 0.71.5 2024