Skip to content

Commit

Permalink
Merge pull request #83 from Nosto/SSP-124_campingshop_categories_with…
Browse files Browse the repository at this point in the history
…_no_products_return_v4

SSP-124 Campingshop: Categories with no Products return v4
  • Loading branch information
Bibarella authored Oct 14, 2024
2 parents 095e498 + 3c76d2b commit 5ec91d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Search/Request/Handler/AbstractRequestHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ public function fetchProducts(Request $request, Criteria $criteria, SalesChannel
return;
}

$criteria->setIds($responseParser->getProductIds());
if ($responseParser->getProductIds()) {
$criteria->setIds($responseParser->getProductIds());
}

$this->setPagination(
$criteria,
Expand Down

0 comments on commit 5ec91d2

Please sign in to comment.