build description common model fix
(cherry picked from commit 60b2e9cb90
)
This commit is contained in:
parent
7951f5e50d
commit
3c0efa35d3
|
@ -1658,7 +1658,8 @@ public class DescriptionServiceImpl implements DescriptionService {
|
|||
if (commonModel.getDescriptionTemplate() != null && commonModel.getDescriptionTemplate().getDefinition() != null && !this.conventionService.isListNullOrEmpty(commonModel.getDescriptionTemplate().getDefinition().getPages())) {
|
||||
if (commonModel.getProperties() != null && commonModel.getProperties().getFieldSets() != null && !commonModel.getProperties().getFieldSets().isEmpty()){
|
||||
for (String fieldSetId: commonModel.getProperties().getFieldSets().keySet()){
|
||||
fieldSetsMap.put(fieldSetId, this.commonModelPropertyDefinitionFieldSetToPersist(commonModel.getProperties().getFieldSets().get(fieldSetId), commonModel.getDescriptionTemplate()));
|
||||
PropertyDefinitionFieldSetPersist fieldSetPersist = this.commonModelPropertyDefinitionFieldSetToPersist(commonModel.getProperties().getFieldSets().get(fieldSetId), commonModel.getDescriptionTemplate());
|
||||
if (fieldSetPersist != null && !this.conventionService.isListNullOrEmpty(fieldSetPersist.getItems())) fieldSetsMap.put(fieldSetId, fieldSetPersist);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1678,7 +1679,8 @@ public class DescriptionServiceImpl implements DescriptionService {
|
|||
if (!this.conventionService.isListNullOrEmpty(commonModel.getItems())){
|
||||
List<PropertyDefinitionFieldSetItemPersist> items = new ArrayList<>();
|
||||
for (PropertyDefinitionFieldSetItemModel fieldSetItem: commonModel.getItems()) {
|
||||
items.add(this.commonModelPropertyDefinitionFieldSetItemToPersist(fieldSetItem, descriptionTemplate));
|
||||
PropertyDefinitionFieldSetItemPersist fieldSetItemPersist = this.commonModelPropertyDefinitionFieldSetItemToPersist(fieldSetItem, descriptionTemplate);
|
||||
if (fieldSetItemPersist != null && !fieldSetItemPersist.getFields().isEmpty()) items.add(fieldSetItemPersist);
|
||||
}
|
||||
persist.setItems(items);
|
||||
return persist;
|
||||
|
|
Loading…
Reference in New Issue