Fotoweb Media Library broken when scheduler 2.x is enabled

Created on 10 December 2023, 12 months ago
Updated 29 May 2024, 6 months ago

Problem/Motivation

When the entity agnostic scheduler 2.x module is enabled you get the following error when trying to open a media library for a field that allows the Fotoweb media type.

Error: Call to undefined method Drupal\media_fotoweb\Form\FotowebBrowserForm::getEntity() in scheduler_form_alter() (line 68 of /modules/contrib/scheduler/scheduler.module)

Scheduler has the assumption that it is a regular ContentEntityForm.

Just the fact that Scheduler supports Media entities causes the problem, even if scheduler is not enabled for the bundle.

Steps to reproduce

Just add an empty method seems to be sufficient to avoid the error.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇩🇪Germany szeidler Berlin

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024