Fix menu_items in top_menu

This commit is contained in:
Alexander Meindl 2021-08-06 14:06:47 +02:00
parent 2fb9368522
commit ff180afc11

View File

@ -120,8 +120,8 @@ module AdditionalsMenuHelper
break if show_entry
end
menu_name = item.delete :menu_name
if show_entry
menu_name = item.delete :menu_name
handle_top_menu_item menu_name, item
elsif Redmine::MenuManager.map(:top_menu).exists?(menu_name)
Redmine::MenuManager.map(:top_menu).delete(menu_name)