small fix
This commit is contained in:
parent
f8d074b81c
commit
964aa89912
|
@ -180,6 +180,7 @@ public class SectionPersist {
|
|||
.must(() -> item.getDescriptionTemplates().stream().map(DescriptionTemplatePersist::getDescriptionTemplateGroupId).distinct().collect(Collectors.toList()).size() == item.getDescriptionTemplates().size())
|
||||
.failOn(SectionPersist._descriptionTemplates).failWith(this.messageSource.getMessage("Validation_Unique", new Object[]{SectionPersist._descriptionTemplates}, LocaleContextHolder.getLocale())),
|
||||
this.spec()
|
||||
.iff(() -> !this.isListNullOrEmpty(item.getDescriptionTemplates()))
|
||||
.must(() -> !this.isNull(item.getPrefillingSourcesEnabled()))
|
||||
.failOn(SectionPersist._prefillingSourcesEnabled).failWith(this.messageSource.getMessage("Validation_Required", new Object[]{SectionPersist._prefillingSourcesEnabled}, LocaleContextHolder.getLocale()))
|
||||
|
||||
|
|
|
@ -183,9 +183,9 @@ export class PlanBlueprintDefinitionSectionEditorModel implements PlanBlueprintD
|
|||
description: string;
|
||||
ordinal: number;
|
||||
fields: FieldInSectionEditorModel[] = [];
|
||||
hasTemplates: boolean;
|
||||
hasTemplates: boolean = false;
|
||||
descriptionTemplates?: DescriptionTemplatesInSectionEditorModel[] = [];
|
||||
prefillingSourcesEnabled: boolean;
|
||||
prefillingSourcesEnabled: boolean = false;
|
||||
prefillingSourcesIds: Guid[]= [];
|
||||
|
||||
protected formBuilder: UntypedFormBuilder = new UntypedFormBuilder();
|
||||
|
|
Loading…
Reference in New Issue