Media library form can only be submitted in the default workspace

Created on 5 June 2020, almost 5 years ago
Updated 25 October 2024, 7 months ago

Make media library form to be workspace safe. Currently while in a workspace it isn't possible to create new media entities, which hampers the usefulness and usability of using a workspace.

Steps to reproduce

  • Using a fresh Drupal 9.2 Umami install, enable the Workspaces module and create a workspace.
  • Switch to the new workspace
  • Create or edit a recipe. For the main image field, open the media library and attempt to upload an image to create a new entity
  • Alternatively, try to create a new image media directly in the media library

Either way you should see the error "This form can only be submitted in the default workspace." and the media entity is not created. Switching back to the live workspace, creating a new image media entity by either method works fine.

Feature request
Status

Needs work

Version

11.0 🔥

Component

media system

Created by

🇧🇷Brazil DarKFlameS

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024