You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I set the Link to UR, leave the field empty and try to save the collection, it triggers the required validation.
If I set the Link to First Child and save the collection, the collection is saved successfully and the link is null.
I assume this is not expected, since null is an "empty" value and required means not empty as per your documentation?
How to reproduce
Use the Link Fieldtype in some Fieldset.
set the Link as required.
Put the link in the last collection at the end, so First Child is null.
save the collection and be surprised, it does not trigger the required validation.
You go to the page tree and drag the child away, so now the page doesn't have a child. Should that be prevented here too because your entry wants a first child?
We don't validate that a first child is available. If there is one, it'll reference it. Otherwise, it won't.
Bug description
If I set the Link to UR, leave the field empty and try to save the collection, it triggers the required validation.
If I set the Link to First Child and save the collection, the collection is saved successfully and the link is null.
I assume this is not expected, since null is an "empty" value and required means not empty as per your documentation?
How to reproduce
Use the Link Fieldtype in some Fieldset.
set the Link as required.
Put the link in the last collection at the end, so First Child is null.
save the collection and be surprised, it does not trigger the required validation.
Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
The text was updated successfully, but these errors were encountered: