From 614fb9e130fc8ec7fad77f7b4aea9fe25f63219f Mon Sep 17 00:00:00 2001 From: Arkharis Date: Tue, 6 Oct 2020 15:24:38 +0300 Subject: [PATCH] Fix a bug with the parameter 'ADD_SECTION_CHAIN' The parameter 'ADD_SECTIONS_CHAIN' equal to 'N' had the same effect as 'Y'. --- lib/traits/elements.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/traits/elements.php b/lib/traits/elements.php index 2838570..4670123 100644 --- a/lib/traits/elements.php +++ b/lib/traits/elements.php @@ -368,7 +368,7 @@ protected function setNavChain() { global $APPLICATION; - if ($this->arParams['ADD_SECTIONS_CHAIN'] && is_array($this->arResult['SECTION'])) + if ($this->arParams['ADD_SECTIONS_CHAIN'] === 'Y' && is_array($this->arResult['SECTION'])) { foreach ($this->arResult['SECTION']['PATH'] as $path) { @@ -820,4 +820,4 @@ protected function executeEpilogElements() $this->setNavChain(); $this->setEditButtons(); } -} \ No newline at end of file +}