Multivalue taxonomy terms break filters in scheduler section

Created on 7 July 2025, 8 days ago

Problem/Motivation

When you are on /admin/event-details/scheduler/settings and you select as filters a taxonomy field that can be multivalue, the scheduler page /admin/event-details/scheduler breaks with:

The website encountered an unexpected error. Try again later.

Error: Call to a member function label() on null in Drupal\event_platform_scheduler\Controller\Scheduler->listSessions() (line 360 of modules/contrib/event_platform/event_platform_scheduler/src/Controller/Scheduler.php).

The error happens in this line: https://git.drupalcode.org/project/event_platform/-/blob/2.0.x/event_pla...
It happens when $value has multiple values.

Steps to reproduce

Allow a multivalue taxonomy field in sessions (eg: categories)
Choose that value as filter in the scheduler settings
Visit the scheduler page

Proposed resolution

Explode the value of $value and loop through it.

Remaining tasks

MR

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇪🇸Spain fjgarlin

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