Warning: Undefined array key "regex" in Drupal\conditional_fields\ConditionalFieldsFormHelper::evaluateDependency() (line 793 of modules/contrib/conditional_fields/src/ConditionalFieldsFormHelper.php).

Created on 26 April 2024, 7 months ago

Problem/Motivation

Warning: Undefined array key "regex" in Drupal\conditional_fields\ConditionalFieldsFormHelper::evaluateDependency() (line 793 of modules/contrib/conditional_fields/src/ConditionalFieldsFormHelper.php).

Steps to reproduce

  1. Create List (text) field field_project_category with 3 values and allowed number of values to 1
  2. Create field Attachments field_attachments.
  3. Create dependency:
    Target field: field_attachments
    Controlled by: field_project_category

Proposed resolution

check if $options['regex'] isset

🐛 Bug report
Status

Needs review

Version

4.0

Component

Code

Created by

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