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 { ...@@ -33,7 +33,7 @@ export class EditIndividualsComponent implements OnInit {
individualID: string individualID: string
individual: Individual individual: Individual
geographicSite: GeographicSite geographicSite: GeographicSite
organizations: Organization[] organizations: Organization[]
...@@ -175,7 +175,7 @@ export class EditIndividualsComponent implements OnInit { ...@@ -175,7 +175,7 @@ export class EditIndividualsComponent implements OnInit {
// updateObj = this.editForm.value // updateObj = this.editForm.value
let updatedIndividual: Individual let updatedIndividual: Individual
if (this.newIndividual) { if (this.newIndividual) {
// const definedCharacteristics = this.editForm.get('partyCharacteristic').value.filter(el => el.value) // const definedCharacteristics = this.editForm.get('partyCharacteristic').value.filter(el => el.value)
// if (definedCharacteristics.length) updateObj.partyCharacteristic = definedCharacteristics // if (definedCharacteristics.length) updateObj.partyCharacteristic = definedCharacteristics
...@@ -245,7 +245,7 @@ export class EditIndividualsComponent implements OnInit { ...@@ -245,7 +245,7 @@ export class EditIndividualsComponent implements OnInit {
privateStreetNumber: this.geographicSite.place[0].geographicAddress.geographicSubAddress.privateStreetNumber , privateStreetNumber: this.geographicSite.place[0].geographicAddress.geographicSubAddress.privateStreetNumber ,
subAddressType: this.geographicSite.place[0].geographicAddress.geographicSubAddress.subAddressType subAddressType: this.geographicSite.place[0].geographicAddress.geographicSubAddress.subAddressType
} }
}) })
// if (this.individual.partyCharacteristic.length) { // if (this.individual.partyCharacteristic.length) {
...@@ -270,7 +270,7 @@ export class EditIndividualsComponent implements OnInit { ...@@ -270,7 +270,7 @@ export class EditIndividualsComponent implements OnInit {
code:this.editForm.value.geographicSiteInfo.code, code:this.editForm.value.geographicSiteInfo.code,
description: this.editForm.value.geographicSiteInfo.description, description: this.editForm.value.geographicSiteInfo.description,
relatedParty: [{ relatedParty: [{
id:this.individualID id: id
}], }],
externalIdentifier: [], externalIdentifier: [],
calendar:[], 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