migration fixes
This commit is contained in:
parent
448afac934
commit
f7af5465f9
|
@ -118,6 +118,7 @@ public class PlanBlueprintXmlMigrationService {
|
|||
data.setLabel(itm.getLabel());
|
||||
data.setOrdinal(itm.getOrdinal());
|
||||
data.setHasTemplates(itm.getHasTemplates());
|
||||
data.setPrefillingSourcesEnabled(false);
|
||||
if (!this.conventionService.isListNullOrEmpty(itm.getFields())) {
|
||||
data.setFields(new ArrayList<>());
|
||||
for (FieldModel fieldModel : itm.getFields()) {
|
||||
|
@ -126,6 +127,7 @@ public class PlanBlueprintXmlMigrationService {
|
|||
}
|
||||
|
||||
if (!this.conventionService.isListNullOrEmpty(itm.getDescriptionTemplates())) {
|
||||
data.setPrefillingSourcesEnabled(true);
|
||||
data.setDescriptionTemplates(new ArrayList<>());
|
||||
for (DescriptionTemplate descriptionTemplate : itm.getDescriptionTemplates()) {
|
||||
data.getDescriptionTemplates().add(this.buildDescriptionTemplateEntity(descriptionTemplate, descriptionTemplateGroupMap));
|
||||
|
|
Loading…
Reference in New Issue