From 54d1fa2ac53aef65d057c4894c299757d4e7ccc7 Mon Sep 17 00:00:00 2001 From: lpapadopoulos <lpapadopoulos@ubitech.eu> Date: Tue, 28 May 2024 13:19:26 +0300 Subject: [PATCH] fix the related party id --- .../edit-individuals/edit-individuals.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/shared/components/partyManagement/edit-individuals/edit-individuals.component.ts b/src/app/shared/components/partyManagement/edit-individuals/edit-individuals.component.ts index d98ffda..2e0e121 100644 --- a/src/app/shared/components/partyManagement/edit-individuals/edit-individuals.component.ts +++ b/src/app/shared/components/partyManagement/edit-individuals/edit-individuals.component.ts @@ -33,7 +33,7 @@ export class EditIndividualsComponent implements OnInit { individualID: string individual: Individual - geographicSite: GeographicSite + geographicSite: GeographicSite organizations: Organization[] @@ -175,7 +175,7 @@ export class EditIndividualsComponent implements OnInit { // updateObj = this.editForm.value let updatedIndividual: Individual - + if (this.newIndividual) { // const definedCharacteristics = this.editForm.get('partyCharacteristic').value.filter(el => el.value) // if (definedCharacteristics.length) updateObj.partyCharacteristic = definedCharacteristics @@ -245,7 +245,7 @@ export class EditIndividualsComponent implements OnInit { privateStreetNumber: this.geographicSite.place[0].geographicAddress.geographicSubAddress.privateStreetNumber , subAddressType: this.geographicSite.place[0].geographicAddress.geographicSubAddress.subAddressType } - + }) // if (this.individual.partyCharacteristic.length) { @@ -270,7 +270,7 @@ export class EditIndividualsComponent implements OnInit { code:this.editForm.value.geographicSiteInfo.code, description: this.editForm.value.geographicSiteInfo.description, relatedParty: [{ - id:this.individualID + id: id }], externalIdentifier: [], calendar:[], -- GitLab