Skip to content

Commit

Permalink
Column fix in channel/product search
Browse files Browse the repository at this point in the history
  • Loading branch information
fulopattila122 committed Sep 7, 2023
1 parent 93da3bc commit a23e837
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Foundation/Search/ProductSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ public function withinChannels(Channel ...$channels): self
$channelIds = collect($channels)->pluck('id');

$this->productQuery->whereHas('channels', function ($query) use ($channelIds) {
$query->whereIn('id', $channelIds);
$query->whereIn('channel_id', $channelIds);
});
$this->masterProductQuery->whereHas('channels', function ($query) use ($channelIds) {
$query->whereIn('id', $channelIds);
$query->whereIn('channel_id', $channelIds);
});

return $this;
Expand Down

0 comments on commit a23e837

Please sign in to comment.