From a1b162ca35eaf0b801c228d31b4deeb1f18acb40 Mon Sep 17 00:00:00 2001 From: Herant A Date: Wed, 20 Oct 2021 19:28:48 +0200 Subject: [PATCH] Clear collection to retrieve fresh data after modifications for ajax pagination bug fix was implemented --- Model/Catalog/Layer/ItemCollectionProvider.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Model/Catalog/Layer/ItemCollectionProvider.php b/Model/Catalog/Layer/ItemCollectionProvider.php index f2d3915e..e9b567f9 100644 --- a/Model/Catalog/Layer/ItemCollectionProvider.php +++ b/Model/Catalog/Layer/ItemCollectionProvider.php @@ -82,6 +82,8 @@ public function getCollection(Category $category) ->create(['navigationContext' => $this->navigationContext->resetPagination()]) ; } + + $collection->clear(); return $collection; } catch (TweakwiseException $e) {