Skip to content

Commit

Permalink
Merge pull request #1655 from bakaphp/hotfix-zoho-lead
Browse files Browse the repository at this point in the history
Merge pull request #1648 from bakaphp/hotfix-email-notification
  • Loading branch information
kaioken committed Jul 9, 2024
2 parents 534ce98 + edc98d4 commit fb84775
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Domains/Connectors/Zoho/Workflows/ZohoLeadActivity.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ protected function assignAgent(
}

if ($agentInfo->user && ! empty($agentInfo->user->get('sponsor'))) {
$zohoData['Sponsor'] = (string) $agent->user->get('sponsor');
$zohoData['Sponsor'] = (string) $agentInfo->user->get('sponsor');
}
}

if ($company->get(CustomFieldEnum::ZOHO_USE_AGENT_NAME->value)) {
if ($company->get(CustomFieldEnum::ZOHO_USE_AGENT_NAME->value) && ! empty($agentInfo->name)) {
$zohoData['Agent_Name'] = $agentInfo->name;
}

Expand Down

0 comments on commit fb84775

Please sign in to comment.