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())
|
.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())),
|
.failOn(SectionPersist._descriptionTemplates).failWith(this.messageSource.getMessage("Validation_Unique", new Object[]{SectionPersist._descriptionTemplates}, LocaleContextHolder.getLocale())),
|
||||||
this.spec()
|
this.spec()
|
||||||
|
.iff(() -> !this.isListNullOrEmpty(item.getDescriptionTemplates()))
|
||||||
.must(() -> !this.isNull(item.getPrefillingSourcesEnabled()))
|
.must(() -> !this.isNull(item.getPrefillingSourcesEnabled()))
|
||||||
.failOn(SectionPersist._prefillingSourcesEnabled).failWith(this.messageSource.getMessage("Validation_Required", new Object[]{SectionPersist._prefillingSourcesEnabled}, LocaleContextHolder.getLocale()))
|
.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;
|
description: string;
|
||||||
ordinal: number;
|
ordinal: number;
|
||||||
fields: FieldInSectionEditorModel[] = [];
|
fields: FieldInSectionEditorModel[] = [];
|
||||||
hasTemplates: boolean;
|
hasTemplates: boolean = false;
|
||||||
descriptionTemplates?: DescriptionTemplatesInSectionEditorModel[] = [];
|
descriptionTemplates?: DescriptionTemplatesInSectionEditorModel[] = [];
|
||||||
prefillingSourcesEnabled: boolean;
|
prefillingSourcesEnabled: boolean = false;
|
||||||
prefillingSourcesIds: Guid[]= [];
|
prefillingSourcesIds: Guid[]= [];
|
||||||
|
|
||||||
protected formBuilder: UntypedFormBuilder = new UntypedFormBuilder();
|
protected formBuilder: UntypedFormBuilder = new UntypedFormBuilder();
|
||||||
|
|
Loading…
Reference in New Issue