N°3936 - Fix designation of the default theme

This commit is contained in:
Molkobain
2021-04-09 09:03:23 +02:00
parent d6695d3ad8
commit 25e88b889d

View File

@@ -499,7 +499,7 @@ function GetThemeFieldBlock(): iUIBlock
}
$bSelected = ($sCode === ThemeHandler::GetCurrentUserThemeId());
if (true === $bSelected) {
if ($sCode === MetaModel::GetConfig()->Get('backoffice_default_theme')) {
$sLabel = Dict::Format('UI:Preferences:General:Theme:DefaultThemeLabel', $sLabel);
}
$oSelectInput->AddSubBlock(SelectOptionUIBlockFactory::MakeForSelectOption($sCode, $sLabel, $bSelected));