Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MONGOID-5757 Fix validation checks so that all associated records are validated #5882

Open
wants to merge 1 commit into
base: 9.0-stable
Choose a base branch
from

Conversation

jamis
Copy link
Contributor

@jamis jamis commented Oct 14, 2024

(Backporting #5881 from master to 9.0-stable.)

Changes made for MONGOID-5704 introduced a regression that caused associated validations to stop after the first failure, rather than validating all associated records. This PR corrects the regression by fixing the short-circuited evaluation that was introduced in that earlier PR.

…ongodb#5881)

It was previously stopping at the first failed validation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant