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 27, 2024
1 parent d7bc6a4 commit 0e675a9
Show file tree
Hide file tree
Showing 3 changed files with 6 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
3 changes: 2 additions & 1 deletion ui/ui-frontend/projects/referential/src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"OBJECT_STRATEGY": "For digital files (binary objects)",
"SUBMIT": "Confirm",
"MANAGEMENT_CONTRACT_CREATED": "Management contract created successfully",
"MANAGEMENT_CONTRACT_UPDATED": "The management contract is successfully updated"
"MANAGEMENT_CONTRACT_UPDATED": "The management contract is successfully updated",
"SELECT_MANAGEMENT_CONTRACT": "None"
},
"CONTRACT_LIST": {
"IDENTIFIER": "Contract identifier",
Expand Down
3 changes: 2 additions & 1 deletion ui/ui-frontend/projects/referential/src/assets/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"OBJECT_STRATEGY": "Pour les fichiers numériques (objets binaires)",
"SUBMIT": "Confirmer",
"MANAGEMENT_CONTRACT_CREATED": "Le contrat de gestion est bien créé",
"MANAGEMENT_CONTRACT_UPDATED": "Le contrat de gestion est bien mis à jour"
"MANAGEMENT_CONTRACT_UPDATED": "Le contrat de gestion est bien mis à jour",
"SELECT_MANAGEMENT_CONTRACT": "Aucun"
},
"CONTRACT_LIST": {
"IDENTIFIER": "Identifiant du contrat",
Expand Down

0 comments on commit 0e675a9

Please sign in to comment.