mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-30 22:18:46 +02:00
N°5620 - Hide the organization filter with a conf parameter
This commit is contained in:
@@ -333,6 +333,14 @@ class Config
|
|||||||
'source_of_value' => '',
|
'source_of_value' => '',
|
||||||
'show_in_conf_sample' => false,
|
'show_in_conf_sample' => false,
|
||||||
],
|
],
|
||||||
|
'allow_menu_organization_filter' => [
|
||||||
|
'type' => 'bool',
|
||||||
|
'description' => 'Display organization filter in menu',
|
||||||
|
'default' => true,
|
||||||
|
'value' => true,
|
||||||
|
'source_of_value' => '',
|
||||||
|
'show_in_conf_sample' => false,
|
||||||
|
],
|
||||||
'allow_target_creation' => [
|
'allow_target_creation' => [
|
||||||
'type' => 'bool',
|
'type' => 'bool',
|
||||||
'description' => 'Displays the + button on external keys to create target objects',
|
'description' => 'Displays the + button on external keys to create target objects',
|
||||||
|
|||||||
@@ -301,6 +301,11 @@ class NavigationMenu extends UIBlock implements iKeyboardShortcut
|
|||||||
$this->bHasSiloSelected = false;
|
$this->bHasSiloSelected = false;
|
||||||
$this->sSiloLabel = null;
|
$this->sSiloLabel = null;
|
||||||
|
|
||||||
|
\IssueLog::Info("test allow_menu_organization_filter", null, ['allow_menu_organization_filter' => MetaModel::GetConfig()->Get('allow_menu_organization_filter')]);
|
||||||
|
if (! MetaModel::GetConfig()->Get('allow_menu_organization_filter')){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
//TODO 3.0 Use components if we have the time to build select/autocomplete components before release
|
//TODO 3.0 Use components if we have the time to build select/autocomplete components before release
|
||||||
// List of visible Organizations
|
// List of visible Organizations
|
||||||
$iCount = 0;
|
$iCount = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user