N°5620 - conf param renaming + backward compatibility test

This commit is contained in:
odain
2022-11-21 09:56:56 +01:00
parent 174cace20a
commit 0b03b3ef4d
3 changed files with 95 additions and 10 deletions

View File

@@ -19,7 +19,6 @@
namespace Combodo\iTop\Application\UI\Base\Layout\NavigationMenu;
use ApplicationContext;
use ApplicationMenu;
use appUserPreferences;
@@ -290,6 +289,10 @@ class NavigationMenu extends UIBlock implements iKeyboardShortcut
}
}
private function IsOrgMenuFilterAllowed() : bool {
return MetaModel::GetConfig()->Get('navigation_menu.show_organization_filter');
}
/**
* @return void
* @throws \CoreException
@@ -301,7 +304,7 @@ class NavigationMenu extends UIBlock implements iKeyboardShortcut
$this->bHasSiloSelected = false;
$this->sSiloLabel = null;
if (! MetaModel::GetConfig()->Get('allow_menu_organization_filter')){
if (! $this->IsOrgMenuFilterAllowed()){
return;
}