Closed raymerrd closed 2 years ago
I cannot recreate the issue. I think the issue could be from a plugin modifying the assets menu and inadvertently replacing the icon with the default "empty" one if the item they add has no other icon.
Can you try making this change, logging out and back in, and see if it resolves the issue?
diff --git a/src/Html.php b/src/Html.php
index 8b37f2a3f3..f67c66a3f7 100644
--- a/src/Html.php
+++ b/src/Html.php
@@ -1530,7 +1530,7 @@ HTML;
if (is_array($val)) {
foreach ($val as $k => $object) {
$menu[$key]['types'][] = $object;
- if (method_exists($object, 'getIcon')) {
+ if (empty($menu[$key]['icon']) && method_exists($object, 'getIcon')) {
$menu[$key]['icon'] = $object::getIcon();
}
}
Hi Mr. Conard @cconard96,
thanks for your reply, Updated the code, and work perfectly.
maybe I should uninstall the plugin am no longer using and see if the problem still persists with the old code.
One more thing ill like to ask and not sure if to make a new issue, the reason is that the "back to the top icon" sometimes gets on top of the Save Icon (on any size window), this is not a problem, cause if I miss click it just sen me back to the top.
Again thanks for your help with this little bug.
Code of Conduct
Is there an existing issue for this?
Version
10.0.2
Bug description
Hi everyone,
the bug I'm getting is related to the navigation bar, on either sidebar or horizontal menu, the assets icon is missing, but only went I log in as Super-Admin. Super Admin code in Chrome
Admin code in Chrome
HTML.php File - y try changing it with a different icon but changes only reflect on admin profile, while super-admin stay empty
Sorry, I can't give more details explanations of the bug.
Relevant log output
No response
Page URL
No response
Steps To reproduce
Your GLPI setup information
Information about system installation & configuration
Server
GLPI constants
Libraries
SQL replicas
Plugins list
Anything else?
No response