Skip to content

Commit ba76051

Browse files
committed
Polyfill method MatchFilterForLeadTrait::doFiltersContainCompanyFilter improved
1 parent e4ccfa7 commit ba76051

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Polyfill/EventListener/MatchFilterForLeadTrait.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,12 @@ private function transformFilterDataForLead(array $data, array $lead): ?array
202202
private function doFiltersContainCompanyFilter(array $filters): bool
203203
{
204204
foreach ($filters as $filter) {
205+
$object = $filter['object'] ?? '';
206+
207+
if ('company' === $object) {
208+
return true;
209+
}
210+
205211
if ((0 === strpos($filter['field'], 'company') && 'company' !== $filter['field'])) {
206212
return true;
207213
}

0 commit comments

Comments
 (0)