Problem/Motivation

If you have no media types defined on your Drupal Instance and you try to save the config you will get a PHP stack trace because media has no bundle types.

Steps to reproduce

Have no media types and try to save the config form

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

reece.oliver created an issue. See original summary.

nginex made their first commit to this issue’s fork.

nginex’s picture

Version: 1.3.14 » 1.3.x-dev
Status: Active » Needs review

Hi @reece.oliver,

Nice catch, I have provided a patch to fix the issue.

reece.oliver’s picture

Thank you very much, I did eventually make a patch myself after opening this, but Drupal wasn't letting me comment on the issue yesterday. We had the same solution anyhow. Cheers for getting a fix together so quickly

  • nginex committed bdc455d0 on 1.3.x
    Issue #3355311: Fix bug for empty bundles in config form.
    
nginex’s picture

Status: Needs review » Fixed
nginex’s picture

Status: Fixed » Closed (fixed)

This is now available since 1.3.15