Skip to content

Commit

Permalink
Update SugarcrmIntegration.php
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-fahrenkrog authored Jun 10, 2024
1 parent 6216814 commit ba2cde7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/MauticCrmBundle/Integration/SugarcrmIntegration.php
Original file line number Diff line number Diff line change
Expand Up @@ -1189,6 +1189,10 @@ public function pushLead($lead, $config = [])
}
}
$createdLeadData = $this->getApiHelper()->createLead($mappedData[$object], $lead);
if(isset($createdLeadData[0]['id']))
{
$createdLeadData = $createdLeadData[0];
}
if (isset($createdLeadData['id'])) {
if (empty($integrationId)) {
$integrationEntity = new IntegrationEntity();
Expand Down

0 comments on commit ba2cde7

Please sign in to comment.