Fix critical issue with dataset saving
This commit is contained in:
parent
65b4e58aad
commit
3c00d47407
|
@ -22,4 +22,5 @@ export interface Field {
|
|||
validations: Array<ValidationType>;
|
||||
validationRequired;
|
||||
validationURL;
|
||||
ordinal: number;
|
||||
}
|
||||
|
|
|
@ -230,9 +230,11 @@ export class DatasetDescriptionFieldEditorModel extends BaseFormModel {
|
|||
public validations: Array<ValidationType>;
|
||||
public validationRequired = false;
|
||||
public validationURL = false;
|
||||
public ordinal: number;
|
||||
|
||||
fromModel(item: Field): DatasetDescriptionFieldEditorModel {
|
||||
this.id = item.id;
|
||||
this.ordinal = item.ordinal;
|
||||
this.title = item.title;
|
||||
this.numbering = item.numbering;
|
||||
this.description = item.description;
|
||||
|
@ -280,6 +282,7 @@ export class DatasetDescriptionFieldEditorModel extends BaseFormModel {
|
|||
additionalInformation: [{ value: this.additionalInformation, disabled: true }],
|
||||
title: [{ value: this.title, disabled: true }],
|
||||
defaultValue: [{ value: this.defaultValue, disabled: true }],
|
||||
ordinal: [{ value: this.ordinal, disabled: true }]
|
||||
});
|
||||
|
||||
const multiplicityItemsFormArray = new Array<FormGroup>();
|
||||
|
|
Loading…
Reference in New Issue