Skip to content

Commit

Permalink
Merge pull request #1659 from bakaphp/hotfix-zoho-lead
Browse files Browse the repository at this point in the history
Merge pull request #1655 from bakaphp/hotfix-zoho-lead
  • Loading branch information
kaioken committed Jul 9, 2024
2 parents 8ea83d1 + c562813 commit 476b578
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Domains/Connectors/Zoho/DataTransferObject/ZohoLead.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ public static function fromLead(Lead $lead): self
public function toArray(): array
{
$data = parent::toArray();

unset($data['additionalFields']);
//unset($data['additionalFields']);

return $data;
}
Expand Down Expand Up @@ -96,7 +95,9 @@ protected static function mapProperties(array $map, array &$data, array $entity)
$value = $creditScore[(int) $value] ?? $value;
}

$data[$name] = $value;
if ($value !== null) {
$data[$name] = $value;
}
}
}

Expand Down
3 changes: 3 additions & 0 deletions src/Domains/Connectors/Zoho/Workflows/ZohoLeadActivity.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
use Webleit\ZohoCrmApi\Modules\Leads as ZohoLeadModule;
use Workflow\Activity;

/**
* @todo refactor move core logic to SyncLeadWithZohoAction
*/
class ZohoLeadActivity extends Activity implements WorkflowActivityInterface
{
use KanvasJobsTrait;
Expand Down

0 comments on commit 476b578

Please sign in to comment.