- Issue created by @fjgarlin
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.
Allow a multivalue taxonomy field in sessions (eg: categories)
Choose that value as filter in the scheduler settings
Visit the scheduler page
Explode the value of $value
and loop through it.
MR
Active
2.0
Code