Sooo...the Media Entity EB widget requires a media bundle to be configured, but there is no way for the user to set this configuration value. Which sucks, because without that config value, the widget will fatal when a file is uploaded.

The attached patch adds a configuration option for setting the bundle.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

phenaproxima created an issue. See original summary.

Status: Needs review » Needs work

The last submitted patch, dropzonejs-eb-media-bundle-config-option.patch, failed testing.

The last submitted patch, dropzonejs-eb-media-bundle-config-option.patch, failed testing.

phenaproxima’s picture

Status: Needs work » Needs review
FileSize
4.79 KB

Fixed broken test resulting from bad XPath query.

phenaproxima’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll
phenaproxima’s picture

Status: Needs work » Needs review
FileSize
4.03 KB

Re-rolled to account for a bug fix in a test which was committed in #2724113: Dropzone elements should set a default maximum file size.

Primsi’s picture

I think that it might make sense to join efforts with #2671914: Implement EB configuration UI and commit everything there. Would that work for you? We can ditch the pr there and create a patch with code from both issues.

  • Primsi committed ffc1160 on 8.x-1.x authored by phenaproxima
    Issue #2722517 by phenaproxima, Primsi: EB widget has no way to...
Primsi’s picture

Status: Needs review » Fixed

Tested it and everything seems to work fine. Thanks!

Status: Fixed » Closed (fixed)

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