Skip to content

Commit

Permalink
improve customer selection with website scope
Browse files Browse the repository at this point in the history
  • Loading branch information
kpitn committed Aug 20, 2024
1 parent 7b1b237 commit 888fb8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Customer/SourceProvider/IdleFilterModifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function apply(AbstractDb $collection, WebsiteInterface $website): void
'e.entity_id=cv.customer_id',
null
);
$collection->getSelect()->where('website_id = ?', $website->getId());
$collection->addFieldToFilter('website_id', $website->getId());
$collection->getSelect()->joinLeft(
['cl' => $connection->getTableName('customer_log')],
'e.entity_id=cl.customer_id',
Expand Down

0 comments on commit 888fb8a

Please sign in to comment.