Skip to content

Commit 4251ff4

Browse files
committed
Additional fix for #9290
1 parent e8ccada commit 4251ff4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grails-validation/src/main/groovy/org/grails/validation/GrailsDomainClassValidator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,6 @@ protected void cascadeValidationToOne(Errors errors, BeanWrapper bean, Object as
249249
errors.setNestedPath(buildNestedPath(nestedPath, propertyName, indexOrKey));
250250

251251
for (GrailsDomainClassProperty associatedPersistentProperty : associatedPersistentProperties) {
252-
if (associatedPersistentProperty.equals(otherSide)) continue;
253252
if (persistentProperty.isEmbedded() && EMBEDDED_EXCLUDES.contains(associatedPersistentProperty.getName())) {
254253
continue;
255254
}
@@ -261,6 +260,7 @@ associatedObject, errors, new BeanWrapperImpl(associatedObject),
261260
associatedConstraintedProperties);
262261
}
263262

263+
if (associatedPersistentProperty.equals(otherSide)) continue;
264264
if (associatedPersistentProperty.isAssociation()) {
265265
cascadeToAssociativeProperty(errors, new BeanWrapperImpl(associatedObject),
266266
associatedPersistentProperty);

0 commit comments

Comments
 (0)