diff --git a/dmp-admin/src/app/models/DataSetProfile/Field.ts b/dmp-admin/src/app/models/DataSetProfile/Field.ts index 2f3c6eb1e..e28461777 100644 --- a/dmp-admin/src/app/models/DataSetProfile/Field.ts +++ b/dmp-admin/src/app/models/DataSetProfile/Field.ts @@ -63,9 +63,10 @@ export class Field extends BaseModel implements Serializable, FormGenerat page: [this.page], ordinal: [this.ordinal] }); - + let valid = ValidationTypes.None + if (this.validations && this.validations[0]==1) valid = ValidationTypes.Required const arr = new FormArray([ - new FormControl(ValidationTypes.None) + new FormControl(valid) ]); //formGroup.addControl("multiplicity", this.multiplicity.buildForm()); diff --git a/dmp-admin/src/app/services/rest-base.ts b/dmp-admin/src/app/services/rest-base.ts index b8fb6c9f8..dfce04ff0 100644 --- a/dmp-admin/src/app/services/rest-base.ts +++ b/dmp-admin/src/app/services/rest-base.ts @@ -18,7 +18,8 @@ export class RestBase { /* */ protocol: string = "http"; - hostname: string = "localhost"; + //hostname: string = "localhost"; + hostname: string = "192.168.32.73"; port: number = 8080; webappname: string = ""; restpath: string = "";