Fix fullcalendar_field_is_date() re: non-entity Views fields (e.g. 'Custom text')

Created on 8 October 2021, over 3 years ago
Updated 27 November 2024, 2 months ago

Problem/Motivation

When adding a non-entity Views field (e.g. "Custom text"), there is an ajax error:

"TypeError: Argument 1 passed to fullcalendar_field_is_date() must be an instance of Drupal\\views\\Plugin\\views\\field\\EntityField, instance of Drupal\\views\\Plugin\\views\\field\\Custom given".

Steps to reproduce

Add a view display using Fullcalendar style plugin, add a "Custom text" field.

Proposed resolution

Attached patch adds "\Drupal\views\Plugin\views\field\Custom" to allowed types of first argument of fullcalendar_field_is_date().

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada bgilhome Victoria

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

Merge Requests

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