Skip to content

Commit

Permalink
Merge branch 'MAUT-11460' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
Avikarsha Saha committed Jun 20, 2024
2 parents 10cc5bb + 9ba579d commit 6b49c01
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions EventListener/TokenSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -428,11 +428,15 @@ private function getCustomFieldDataForLead(array $filters, int $leadId): array
}

if ('cmf_' === substr($condition['field'], 0, 4)) {
$customField = $this->customFieldModel->fetchEntity((int) explode('cmf_', $condition['field'])[1]);
$customField = $this->customFieldModel->fetchEntity(
(int) explode('cmf_', $condition['field'])[1]
);
$customObject = $customField->getCustomObject();
$fieldAlias = $customField->getAlias();
} elseif ('cmo_' === substr($condition['field'], 0, 4)) {
$customObject = $this->customObjectModel->fetchEntity((int) explode('cmo_', $condition['field'])[1]);
$customObject = $this->customObjectModel->fetchEntity(
(int) explode('cmo_', $condition['field'])[1]
);
$fieldAlias = 'name';
} else {
continue;
Expand Down

0 comments on commit 6b49c01

Please sign in to comment.