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

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

szeidler created an issue. See original summary.

szeidler’s picture

Issue summary: View changes
szeidler’s picture

Issue summary: View changes
szeidler’s picture

Status: Active » Needs review
StatusFileSize
new714 bytes

Here's a patch.

szeidler changed the visibility of the branch 3407744-fotoweb-media-library to hidden.

szeidler changed the visibility of the branch 3407744-fotoweb-media-library to active.

  • szeidler committed d6016fc5 on 2.0.x
    Issue #3407744 by szeidler: Fotoweb Media Library broken when scheduler...
szeidler’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.