Skip to content

Commit

Permalink
Merge pull request #957 from bakaphp/hotfix-new-lead
Browse files Browse the repository at this point in the history
Merge pull request #916 from bakaphp/development
  • Loading branch information
kaioken authored Feb 19, 2024
2 parents 44a844f + 322b39c commit 3530561
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Domains/Connectors/Zoho/DataTransferObject/ZohoLead.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ public static function fromLead(Lead $lead): self

$people = $lead->people()->first();
$owner = (string) ($lead->owner()->first() ? $lead->company()->first()->get(CustomFieldEnum::DEFAULT_OWNER->value) : null);
$status = (string) ($lead->status()->first() ? $lead->status()->first()->get(CustomFieldEnum::ZOHO_STATUS_NAME->value) : 'New Lead');
$newLead = 'New Lead';
$status = (string) ($lead->status()->first() ? ($lead->status()->first()->get(CustomFieldEnum::ZOHO_STATUS_NAME->value) ?? $newLead) : $newLead);

return new self(
$people->firstname,
Expand Down

0 comments on commit 3530561

Please sign in to comment.