'Required field' validation does not prevent node from being saved when edited

Created on 2 June 2017, almost 8 years ago
Updated 4 May 2023, almost 2 years ago

I’m using the most recent 7.x dev version. I have a term reference field that is required, with “force selection of deepest level” disabled and unlimited values allowed. If I’m creating new content, then the error message fires, but if I edit content and attempt to delete my selections (by choosing “-Select a value-“ for the parent) then I do not get an error message. Instead of validating, the node saves and the term reference field is populated with the first tid in the vocabulary. Should the validation prevent the node from being saved?

🐛 Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇺🇸United States capysara

Live updates comments and jobs are added and updated live.
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