From 105ab7defa7f3109aae1b8b82457767a802bbf4d Mon Sep 17 00:00:00 2001 From: kaioken Date: Tue, 9 Jul 2024 12:37:19 -0400 Subject: [PATCH 1/2] feat: commit --- src/Domains/Connectors/Zoho/Workflows/ZohoLeadActivity.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Domains/Connectors/Zoho/Workflows/ZohoLeadActivity.php b/src/Domains/Connectors/Zoho/Workflows/ZohoLeadActivity.php index a54a4beaa..f62857f2b 100644 --- a/src/Domains/Connectors/Zoho/Workflows/ZohoLeadActivity.php +++ b/src/Domains/Connectors/Zoho/Workflows/ZohoLeadActivity.php @@ -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; } From edc98d42951a8d96ca3b93bbae1b3f724bf7eaf8 Mon Sep 17 00:00:00 2001 From: kaioken Date: Tue, 9 Jul 2024 12:41:34 -0400 Subject: [PATCH 2/2] feat: commit --- src/Domains/Connectors/Zoho/Workflows/ZohoLeadActivity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Domains/Connectors/Zoho/Workflows/ZohoLeadActivity.php b/src/Domains/Connectors/Zoho/Workflows/ZohoLeadActivity.php index f62857f2b..0a3e38c21 100644 --- a/src/Domains/Connectors/Zoho/Workflows/ZohoLeadActivity.php +++ b/src/Domains/Connectors/Zoho/Workflows/ZohoLeadActivity.php @@ -129,7 +129,7 @@ protected function assignAgent( } } - if ($company->get(CustomFieldEnum::ZOHO_USE_AGENT_NAME->value) && !empty($agentInfo->name)) { + if ($company->get(CustomFieldEnum::ZOHO_USE_AGENT_NAME->value) && ! empty($agentInfo->name)) { $zohoData['Agent_Name'] = $agentInfo->name; }