Skip to content
Snippets Groups Projects
Verified Commit 4c6caedb authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #9001 M2M get contact

parent 004ce11b
No related branches found
No related tags found
No related merge requests found
...@@ -295,8 +295,8 @@ class ReceiveMessageExchangeController ...@@ -295,8 +295,8 @@ class ReceiveMessageExchangeController
'limit' => 1 'limit' => 1
]); ]);
if (!empty($contactAlreadyCreated)) { if (!empty($contactAlreadyCreated)) {
$contact['contactId'] = $contactAlreadyCreated['contact_id']; $contact['contactId'] = $contactAlreadyCreated[0]['contact_id'];
$contact['addressId'] = $contactAlreadyCreated['ca_id']; $contact['addressId'] = $contactAlreadyCreated[0]['ca_id'];
} else { } else {
$contact = ContactModel::CreateContactM2M(['data' => $aDataContact, 'contactCommunication' => $transferringAgencyMetadata->Communication[0]->value]); $contact = ContactModel::CreateContactM2M(['data' => $aDataContact, 'contactCommunication' => $transferringAgencyMetadata->Communication[0]->value]);
} }
......
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