PL-7455 Support generator method apart from addCustomField() for FieldGroup

This commit is contained in:
Yuriy Artamonov 2016-07-04 11:23:25 +04:00
parent 031a9e5f8e
commit f1a36062b8

View File

@ -512,11 +512,13 @@ public class FieldGroupLoader extends AbstractComponentLoader<FieldGroup> {
}
for (FieldGroup.FieldConfig field : resultComponent.getFields()) {
String generator = field.getXmlDescriptor().attributeValue("generator");
if (generator != null) {
context.addPostWrapTask((boundContext, window) ->
resultComponent.addCustomField(field, new DeclarativeFieldGenerator(resultComponent, generator))
);
if (field.getXmlDescriptor() != null) {
String generator = field.getXmlDescriptor().attributeValue("generator");
if (generator != null) {
context.addPostWrapTask((boundContext, window) ->
resultComponent.addCustomField(field, new DeclarativeFieldGenerator(resultComponent, generator))
);
}
}
}