@ -352,7 +352,7 @@ export class FieldInSectionEditorModel implements FieldInSectionPersist {
id : [ { value : this.id , disabled : disabled } , context . getValidation ( 'id' ) . validators ] ,
category : [ { value : this.category , disabled : disabled } , context . getValidation ( 'category' ) . validators ] ,
label : [ { value : this.label , disabled : disabled } , this . category === DmpBlueprintFieldCategory . System ? context . getValidation ( 'label-system' ) . validators : context.getValidation ( 'label-ext ra') . validators ] ,
label : [ { value : this.label , disabled : disabled } , this . category === DmpBlueprintFieldCategory . System ? context . getValidation ( 'label-system' ) . validators : ( this . category === DmpBlueprintFieldCategory . Extra ? context . getValidation ( 'label-extra' ) . validators : context.getValidation ( 'label-ext e rn al-reference ') . validators ) ] ,
placeholder : [ { value : this.placeholder , disabled : disabled } , context . getValidation ( 'placeholder' ) . validators ] ,
description : [ { value : this.description , disabled : disabled } , context . getValidation ( 'description' ) . validators ] ,
required : [ { value : this.required , disabled : disabled } , context . getValidation ( 'required' ) . validators ] ,
@ -377,6 +377,7 @@ export class FieldInSectionEditorModel implements FieldInSectionPersist {
baseValidationArray . push ( { key : 'category' , validators : [ Validators . required , BackendErrorValidator ( validationErrorModel , ` ${ rootPath } category ` ) ] } ) ;
baseValidationArray . push ( { key : 'label-system' , validators : [ BackendErrorValidator ( validationErrorModel , ` ${ rootPath } label ` ) ] } ) ;
baseValidationArray . push ( { key : 'label-extra' , validators : [ BackendErrorValidator ( validationErrorModel , ` ${ rootPath } label ` ) ] } ) ;
baseValidationArray . push ( { key : 'label-external-reference' , validators : [ BackendErrorValidator ( validationErrorModel , ` ${ rootPath } label ` ) ] } ) ;
baseValidationArray . push ( { key : 'placeholder' , validators : [ BackendErrorValidator ( validationErrorModel , ` ${ rootPath } placeholder ` ) ] } ) ;
baseValidationArray . push ( { key : 'description' , validators : [ BackendErrorValidator ( validationErrorModel , ` ${ rootPath } description ` ) ] } ) ;
baseValidationArray . push ( { key : 'semantics' , validators : [ BackendErrorValidator ( validationErrorModel , ` ${ rootPath } semantics ` ) ] } ) ;
@ -406,7 +407,7 @@ export class FieldInSectionEditorModel implements FieldInSectionPersist {
const control = formGroup ? . get ( keyField ) ;
control ? . clearValidators ( ) ;
if ( keyField == 'label' ) {
control ? . addValidators ( context . has ( 'label-system' ) ? context . getValidation ( 'label-system' ) . validators : context.getValidation ( 'label-ext ra') . validators ) ;
control ? . addValidators ( context . has ( 'label-system' ) ? context . getValidation ( 'label-system' ) . validators : ( context . has ( 'label-extra' ) ? context . getValidation ( 'label-extra' ) . validators : context.getValidation ( 'label-ext e rn al-reference ') . validators ) ) ;
} else if ( keyField == 'referenceTypeId' ) {
if ( formGroup . get ( 'category' ) . value == DmpBlueprintFieldCategory . ReferenceType ) control ? . addValidators ( [ Validators . required , . . . context . getValidation ( 'referenceTypeId' ) . validators ] ) ;
else control ? . addValidators ( [ . . . context . getValidation ( 'referenceTypeId' ) . validators ] ) ;