diff --git a/src/Services/TemplateService.php b/src/Services/TemplateService.php index accd2cafc..e2fba9823 100644 --- a/src/Services/TemplateService.php +++ b/src/Services/TemplateService.php @@ -217,6 +217,10 @@ public function isCheapestSorting() $sorting = $sortingHelper->mapToInnerSorting($sorting); $dynamicInheritSorting = $templateConfigRepository->get('sorting.dynamicInherit', []); + if (is_string($dynamicInheritSorting)) { + $dynamicInheritSorting = explode(',' , $dynamicInheritSorting); + } + if (in_array($sorting, $dynamicInheritSorting)) { if ($sorting === 'filter.prices.price_asc') { return true;