Fullcalendar views break if Computed fields are displayed

Created on 18 April 2018, about 7 years ago
Updated 5 June 2025, 2 days ago

Problem/Motivation

Entities can have Computed fields which do not have any field storage definition. With Drupal 8.4 Views also supports displaying those fields.

fullcalendar_field_is_date() iterates over all fields in the view and fetches their field storage definitions. This fails as soon as any computed fields are displayed in the view.

Proposed resolution

Simply return FALSE in fullcalendar_field_is_date() for computed fields. This disallows using computed date fields as the input of the fullcalendar, but at least it avoids an error.

πŸ› Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany tstoeckler Essen, Germany

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.

  • πŸ‡ΊπŸ‡ΈUnited States dcam

    fullcalendar_field_is_date() has undergone extensive modifications during the intervening years. But I read through the function real quick and it looks like the proposed changes were implemented, albeit in a slightly different way. If I'm wrong, then feel free to re-open the issue and update the version number.

Production build 0.71.5 2024