migration fixes

This commit is contained in:
Efstratios Giannopoulos 2024-07-30 15:53:07 +03:00
parent 448afac934
commit f7af5465f9
1 changed files with 2 additions and 0 deletions

View File

@ -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));