Skip to content
Snippets Groups Projects
Commit 88e7d824 authored by ludovic Blanchet's avatar ludovic Blanchet Committed by Gaëlle FOURNIER
Browse files

19001 - Ingest Contract - Fix fillinplan request


Co-authored-by: default avatarbenemart <benedicte.martinez@cea.fr>
parent 15832f81
No related branches found
No related tags found
No related merge requests found
......@@ -41,8 +41,8 @@
</div>
<vitamui-library-filing-plan [formControl]="checkParentIdControl"
[tenantIdentifier]="1"
[accessContract]="'AllInOne'"
[tenantIdentifier]="tenantIdentifier"
[accessContract]="accessContractId"
[mode]="FILING_PLAN_MODE_INC"
></vitamui-library-filing-plan>
......
......@@ -2,8 +2,7 @@
<div class="row">
<div class="col-10 form-control">
<vitamui-common-slide-toggle #f>Original binaire obligatoire
</vitamui-common-slide-toggle>
<vitamui-common-slide-toggle formControlName="masterMandatory">Original binaire obligatoire</vitamui-common-slide-toggle>
</div>
</div>
......
......@@ -38,6 +38,9 @@ export class IngestContractObjectTabComponent implements OnInit {
@Input()
set ingestContract(ingestContract: IngestContract) {
this._ingestContract = ingestContract;
if (!this._ingestContract.dataObjectVersion) {
this._ingestContract.dataObjectVersion = [];
}
this.resetForm(this.ingestContract);
this.updated.emit(false);
}
......@@ -70,10 +73,10 @@ export class IngestContractObjectTabComponent implements OnInit {
private ingestContractService: IngestContractService
) {
this.form = this.formBuilder.group({
masterMandatory: [true],
everyDataObjectVersion: [true, Validators.required],
dataObjectVersion: [null, Validators.required]
dataObjectVersion: [[], Validators.required]
});
}
unchanged(): boolean {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment