Edit Media Library widget produces "This value should not be null" wrong error when field is required

Created on 6 October 2020, almost 4 years ago
Updated 25 May 2023, over 1 year ago

Adding media library field on any entity and making it as required. Create the entity and submit the form without having value in media library field and it will show wrong validation message.

Steps to repeat issue:

1. Enable the Media Library and Media modules.

2. Create content type with Media Library field and make it a required field.

3. Create new content type using Media Library field and save the form to display the wrong error message, "This value should not be null"

See screenshot for error message.

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Media 

Last updated about 20 hours ago

Created by

🇮🇳India deepaverma

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

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

  • Needs subsystem maintainer review

    It is used to alert the maintainer(s) of a particular core subsystem that an issue significantly impacts their subsystem, and their signoff is needed (see the governance policy draft for more information). Also, if you use this tag, make sure the issue component is set to the correct subsystem. If an issue significantly impacts more than one subsystem, use needs framework manager review instead.

Sign in to follow issues

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