diff --git a/CHANGELOG.md b/CHANGELOG.md index 71e904df..646e0533 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Fix drag and drop - Increased the maximum length of the language column to support longer locale codes +- Fix left side menu url ## [1.22.1] - 2025-10-10 diff --git a/inc/menu.class.php b/inc/menu.class.php index e46b4c42..6508c586 100644 --- a/inc/menu.class.php +++ b/inc/menu.class.php @@ -39,14 +39,16 @@ public static function getMenuName() public static function getMenuContent() { + /** @var array $CFG_GLPI */ + global $CFG_GLPI; + if (!Session::haveRight('entity', READ)) { return false; } - $front_fields = Plugin::getPhpDir('fields', false) . '/front'; $menu = [ 'title' => self::getMenuName(), - 'page' => "$front_fields/container.php", + 'page' => $CFG_GLPI['root_doc'] . "/plugins/fields/front/container.php", 'icon' => PluginFieldsContainer::getIcon(), ];