Skip to content

Commit

Permalink
bug #12592: fix error 500 when unselectcontract management
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed tizaoui committed Mar 29, 2024
1 parent 8bd98fc commit bac85f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ export class IngestContractInformationTabComponent implements OnInit {
}

unchanged(): boolean {
const unchanged = JSON.stringify(diff(this.form.getRawValue(), this.previousValue())) === '{}';
const currentFormValue = { ...this.form.getRawValue(), managementContractId: this.form.get('managementContractId').value || '' };
const unchanged = JSON.stringify(diff(currentFormValue, this.previousValue())) === '{}';
this.updated.emit(!unchanged);
return unchanged;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"SUBMIT": "Confirm",
"MANAGEMENT_CONTRACT_CREATED": "Management contract created successfully",
"MANAGEMENT_CONTRACT_UPDATED": "The management contract is successfully updated",
"SELECT_MANAGEMENT_CONTRACT": "Select a management contract"
"SELECT_MANAGEMENT_CONTRACT": "None"
},
"CONTRACT_LIST": {
"IDENTIFIER": "Contract identifier",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"SUBMIT": "Confirmer",
"MANAGEMENT_CONTRACT_CREATED": "Le contrat de gestion est bien créé",
"MANAGEMENT_CONTRACT_UPDATED": "Le contrat de gestion est bien mis à jour",
"SELECT_MANAGEMENT_CONTRACT": "Sélectionnez un contrat de gestion"
"SELECT_MANAGEMENT_CONTRACT": "Aucun"
},
"CONTRACT_LIST": {
"IDENTIFIER": "Identifiant du contrat",
Expand Down

0 comments on commit bac85f8

Please sign in to comment.