crashes when used with a table without an entity type

Created on 18 November 2024, 4 months ago

Problem/Motivation

When this display style is set on a view that uses a table that doesn't have an entity type, it crashes with this:

> Error: Call to a member function id() on false in Drupal\\fullcalendar_view\\Plugin\\views\\style\\FullCalendarDisplay->buildOptionsForm()

The problem is that this line assumes there is a base entity type:

> $entity_type = $this->view->getBaseEntityType()->id();

This can happen for example with custom tables, or with a SearchAPI index that does not have an entity type.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

5.2

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom joachim

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

Comments & Activities

Production build 0.71.5 2024