From 5754f8257d33552ef03391ca7764678c8105c561 Mon Sep 17 00:00:00 2001 From: merelendor Date: Sun, 4 Dec 2022 12:20:01 +0300 Subject: [PATCH] hotfix for catalog display of empty brand/model --- local/components/evolution/catalog/component.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/local/components/evolution/catalog/component.php b/local/components/evolution/catalog/component.php index b507ce6..d2996ba 100644 --- a/local/components/evolution/catalog/component.php +++ b/local/components/evolution/catalog/component.php @@ -59,8 +59,8 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) $pages_url = $arParams['PATH']; - $arResult['BRAND_DISABLED'] = true; - $arResult['MODEL_DISABLED'] = true; + $arResult['BRAND_DISABLED'] = false; + $arResult['MODEL_DISABLED'] = false; $arResult['EXTENDED'] = false; $arResult['BY_OPTIONS'] = false; $arResult['FILTER_SMALL'] = $arParams['FILTER_SMALL'] ? true : false; @@ -99,6 +99,8 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) } else { + $arResult['BRAND_DISABLED'] = true; + $arResult['MODEL_DISABLED'] = true; $arResult['SHOW_MODELS_LIST'] = false; }