ConditionalValidator
ConditionalValidator copied to clipboard
added a break to the for loop.
If you have the following setup with the @Conditional
@Conditional(selected = "X", required = {"Y", "Z"})
@Conditional(selected = "Y", required = {"X", "Z"})
@Conditional(selected = "Z", required = {"X", "Y"})
The validation might go wrong during the loop, adding the break will ensure the !valid is passed through.