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
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | media_fotoweb-scheduler20support-3407744-4.patch | 714 bytes | szeidler |
Issue fork media_fotoweb-3407744
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
Comment #2
szeidler commentedComment #3
szeidler commentedComment #4
szeidler commentedHere's a patch.
Comment #9
szeidler commented