From e5477a3b56d1a27bfad2bdc7e66b9e3b31bded7d Mon Sep 17 00:00:00 2001 From: Fritz Michael Gschwantner Date: Mon, 7 Oct 2024 11:33:42 +0200 Subject: [PATCH] Use first limit as default --- system/modules/isotope/library/Isotope/Module/ProductFilter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/modules/isotope/library/Isotope/Module/ProductFilter.php b/system/modules/isotope/library/Isotope/Module/ProductFilter.php index b610b09390..39814218c2 100755 --- a/system/modules/isotope/library/Isotope/Module/ProductFilter.php +++ b/system/modules/isotope/library/Isotope/Module/ProductFilter.php @@ -454,9 +454,9 @@ protected function generateLimit() if ($this->iso_enableLimit) { $arrOptions = []; $arrLimit = array_map('intval', StringUtil::trimsplit(',', $this->iso_perPage)); - $objLimit = Isotope::getRequestCache()->getFirstLimitForModules([$this->id]); $arrLimit = array_unique($arrLimit); sort($arrLimit); + $objLimit = Isotope::getRequestCache()->getFirstLimitForModules([$this->id], $arrLimit[0] ?? 0); if ($this->blnUpdateCache && \in_array(Input::post('limit'), $arrLimit)) { // Cache new request value