From 9398a2f555ab1b2d9d3d7c57c94dfef36b02019b Mon Sep 17 00:00:00 2001 From: mokaddem Date: Tue, 28 Sep 2021 09:26:24 +0200 Subject: [PATCH] chg: [instance:settings] Display section name regardless of its number of child --- templates/Instance/settings.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/templates/Instance/settings.php b/templates/Instance/settings.php index 2c4e860..5824ca9 100644 --- a/templates/Instance/settings.php +++ b/templates/Instance/settings.php @@ -100,9 +100,7 @@ function genSection($sectionName, $subSectionSettings, $appView) ]); $sectionContent[] = $panelHTML; } else { - if (count($subSectionSettings) > 1) { - $sectionContent[] = sprintf('

%s

', getResolvableID($sectionName), h($sectionName)); - } + $sectionContent[] = sprintf('

%s

', getResolvableID($sectionName), h($sectionName)); foreach ($subSectionSettings as $panelName => $panelSettings) { if (!empty($panelSettings)) { $panelHTML = $appView->element('Settings/panel', [