Skip to content

Commit 2bc29df

Browse files
authored
Fix left side menu (#1040)
* fix(UI): fix left side menu * Fix(Core): fix left side menu url * fix
1 parent 817bf9d commit 2bc29df

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1212

1313
- Fix drag and drop
1414
- Increased the maximum length of the language column to support longer locale codes
15+
- Fix left side menu url
1516

1617
## [1.22.1] - 2025-10-10
1718

inc/menu.class.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,16 @@ public static function getMenuName()
3939

4040
public static function getMenuContent()
4141
{
42+
/** @var array $CFG_GLPI */
43+
global $CFG_GLPI;
44+
4245
if (!Session::haveRight('entity', READ)) {
4346
return false;
4447
}
4548

46-
$front_fields = Plugin::getPhpDir('fields', false) . '/front';
4749
$menu = [
4850
'title' => self::getMenuName(),
49-
'page' => "$front_fields/container.php",
51+
'page' => $CFG_GLPI['root_doc'] . "/plugins/fields/front/container.php",
5052
'icon' => PluginFieldsContainer::getIcon(),
5153
];
5254

0 commit comments

Comments
 (0)