Skip to content
Snippets Groups Projects
Commit 54d1fa2a authored by Labros Papadopoulos's avatar Labros Papadopoulos
Browse files

fix the related party id

parent 33f86334
No related branches found
No related tags found
1 merge request!11Party registration workflow
Pipeline #6224 failed
......@@ -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:[],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment