Skip to content

Commit 9507a93

Browse files
authored
Fix left side menu url (with DIR_MARKETPLACE) (#1079)
* Fix(Core): fix menu * adapt changelog.md
1 parent ec12df5 commit 9507a93

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

CHANGELOG.md

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

1010
### Fixed
1111

12+
- Fix left side menu url (with `DIR_MARKETPLACE`)
1213
- Fix default value format for multiple dropdown (GLPIObject)
1314
- Fix bad SQL query for `GenericObject`
1415
- Fixed a bug that prevented the creation of additional field data for objects

inc/menu.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static function getMenuContent()
4848

4949
$menu = [
5050
'title' => self::getMenuName(),
51-
'page' => $CFG_GLPI['root_doc'] . "/plugins/fields/front/container.php",
51+
'page' => PluginFieldsContainer::getSearchURL(false),
5252
'icon' => PluginFieldsContainer::getIcon(),
5353
];
5454

setup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function plugin_init_fields()
128128

129129
// add entry to configuration menu (only if user has read access to config)
130130
if (Session::haveRight('config', READ)) {
131-
$PLUGIN_HOOKS['menu_toadd']['fields'] = ['config' => 'PluginFieldsMenu'];
131+
$PLUGIN_HOOKS['menu_toadd']['fields'] = ['config' => PluginFieldsMenu::class];
132132
}
133133

134134
// add tabs to itemtypes

0 commit comments

Comments
 (0)