Warning: Undefined array key "#multiple"

Created on 3 October 2023, 9 months ago
Updated 6 October 2023, 9 months ago

Problem/Motivation

Upgraded the module and started getting the following error in the admin UI:
Warning: Undefined array key "#multiple" in Drupal\conditional_fields\Plugin\conditional_fields\handler\Select->statesHandler() (line 64 of modules/contrib/conditional_fields/src/Plugin/conditional_fields/handler/Select.php).

Steps to reproduce

  • Install conditional fields for a content type that contains a taxonomy field
  • Define a condition that relies on the taxonomy field
  • Set
  • to

  • Edit an item of the above-mentioned content type
  • Proposed resolution

    The code should do better error checking that the key exists. Patch is forthcoming

    Remaining tasks

    User interface changes

    API changes

    Data model changes

🐛 Bug report
Status

Needs review

Version

4.0

Component

Code

Created by

🇺🇸United States makbeta

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

Comments & Activities

Production build 0.69.0 2024