From ae03fa74ad13313d793b69bfa12e623d273e47d5 Mon Sep 17 00:00:00 2001 From: Steve Tentrop Date: Mon, 11 Apr 2022 14:59:18 +0200 Subject: [PATCH] HOTFIX: explode comma separated list --- src/Services/TemplateService.php | 4 ++++ 1 file changed, 4 insertions(+) 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;