From 3c76d2bafc5598eaa72e66870952966900c8c61d Mon Sep 17 00:00:00 2001 From: Radomir Butacevic Date: Mon, 16 Sep 2024 15:53:32 +0200 Subject: [PATCH] Add fix --- src/Search/Request/Handler/AbstractRequestHandler.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Search/Request/Handler/AbstractRequestHandler.php b/src/Search/Request/Handler/AbstractRequestHandler.php index 4028a47b..a0bb5d1f 100644 --- a/src/Search/Request/Handler/AbstractRequestHandler.php +++ b/src/Search/Request/Handler/AbstractRequestHandler.php @@ -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,