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
BroadleafCommerce#1512 - Fix formatting issues identified in code review. Note one of the "indentation" issues is due to the fact that the method is in a Proxy instance if you look at the full source.
Copy file name to clipboardExpand all lines: admin/broadleaf-open-admin-platform/src/main/java/org/broadleafcommerce/openadmin/web/rulebuilder/dto/FieldData.java
Copy file name to clipboardExpand all lines: admin/broadleaf-open-admin-platform/src/main/java/org/broadleafcommerce/openadmin/web/rulebuilder/service/AbstractRuleBuilderFieldService.java
field = dynamicEntityDao.getFieldManager().getField(dto, fieldData.getFieldName());
186
-
if (field != null) {
187
-
break;
188
-
}
189
-
}
190
-
if (field == null) {
191
-
thrownewIllegalArgumentException("Unable to find the field declared in FieldData (" + fieldData.getFieldName() + ") on the target class (" + getDtoClassName() + "), or any registered entity class that derives from it.");
192
-
}
193
-
}
194
-
}
179
+
if (!fieldData.getSkipValidation()) {
180
+
if (!StringUtils.isEmpty(fieldData.getFieldName()) && dynamicEntityDao != null) {
field = dynamicEntityDao.getFieldManager().getField(dto, fieldData.getFieldName());
188
+
if (field != null) {
189
+
break;
190
+
}
191
+
}
192
+
if (field == null) {
193
+
thrownewIllegalArgumentException("Unable to find the field declared in FieldData (" + fieldData.getFieldName() + ") on the target class (" + getDtoClassName() + "), or any registered entity class that derives from it.");
194
+
}
195
+
}
196
+
}
195
197
}
196
198
});
197
199
this.fields = proxyFields;
@@ -223,7 +225,7 @@ public void afterPropertiesSet() throws Exception {
0 commit comments