- 🇬🇷Greece gbotis
I can confirm that the patch also applies on 10.0.8 and resolves the issue. Thank you.
If you have a required media field that uses the core media library, and you try to submit it without any values, you get a really unclear error message: "This value should not be null". It offers no clues whatsoever concerning which field it's even talking about. This is pretty bad for UX.
Create a media field on a node type, ensuring it uses the media library and requires at least one selection. Go to create a new node of that type, and submit it without selecting any media. You'll get the world's least helpful error message.
Implement a custom validation method, so as to produce a better error. This cannot be done using the Form API's #required
property, because the media library widget is a composite field type that persists information around in hidden fields that change during user interaction.
Commit the merge request.
When submitting an empty, required media library field, users will get a useful error message, instead of a worthless one.
None.
None.
None needed.
Fixed
9.2
Last updated
Makes Drupal easier to use. Preferred over UX, D7UX, etc.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
I can confirm that the patch also applies on 10.0.8 and resolves the issue. Thank you.