Entries don't appear when Start date is in a relationship entity

Created on 19 November 2020, over 4 years ago
Updated 3 April 2023, about 2 years ago

Problem/Motivation

The module only looks for the start date in the primary entity of the view row, and doesn't support values in relationship entities. This can be seen on line 136 of src/FullcalendarViewPreprocess.php where it only looks for the field in $row->_entity but ignore all entities in the $row->_relationship_entities array.

My event content type uses a paragraph (but could use any entity reference) to store multiple calendar entries for the event. Think of an event with Day 1, Day 2, and Day 3; each with different hours and a sub-label.

Steps to reproduce

The cleanest way to recreate is to create an Event content type that has an entity reference field to a Calendar Entry entity (can just be another content type) that has a start and end date. Then a view of events with a reference to calendar entries. You can rewrite the title to "{{ title }}: {{ title_1 }}" to get a better feel of what to expect.

Event Node called "Drupal Con" that references Day 1, Day 2, and Day 3, each with a different time range.

Proposed resolution

It seems there may be another way to fetch the start date value that is doesn't involve the entity directly, but fetches it from the view row result. It also seems that it could be possible to check the entity and each relationship_entity for the fields.

Remaining tasks

I'll poke around to see if there is a clean way to expand this, but wanted to see if anyone else had any cleaver ideas.

✨ Feature request
Status

Closed: outdated

Version

5.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jlashomb

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024