TypeError: Drupal\conditional_fields\ConditionalFieldsFormHelper::elementAddProperty(): Argument #1 ($element) must be of type array, null given, called in /app/docroot/modules/contrib/conditional_fields/src/ConditionalFieldsFormHelper.php on line 194

Created on 20 December 2023, about 1 year ago
Updated 21 December 2023, about 1 year ago

Problem/Motivation

Can't add new rules.

Steps to reproduce

Try to add a conditional rule at admin/structure/conditional_fields/{entity}/{bundle} in my case a group.

Expected: Conditional rule is saved and applied.

Actual: TypeError: Drupal\conditional_fields\ConditionalFieldsFormHelper::elementAddProperty(): Argument #1 ($element) must be of type array, null given, called in /app/docroot/modules/contrib/conditional_fields/src/ConditionalFieldsFormHelper.php on line 194

Proposed resolution

Fix the code to add defensive code.

Remaining tasks

Investigate why and where this happens.

User interface changes

N/A

API changes

N/A

Data model changes

N/A

๐Ÿ› Bug report
Status

Needs review

Version

4.0

Component

Code

Created by

๐Ÿ‡ฒ๐Ÿ‡ฝMexico rmontero CMDX

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