From 36b92da3d1e19c22409a5c72537666da2963477f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Mon, 9 Dec 2024 08:16:13 +0100 Subject: [PATCH] [#59947] Clicking on recurring meetings, "My meetings" stays selected https://community.openproject.org/work_packages/59947 --- modules/meeting/app/menus/meetings/menu.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/meeting/app/menus/meetings/menu.rb b/modules/meeting/app/menus/meetings/menu.rb index 072f16352855..f4990f3d626e 100644 --- a/modules/meeting/app/menus/meetings/menu.rb +++ b/modules/meeting/app/menus/meetings/menu.rb @@ -44,7 +44,8 @@ def top_level_menu_items my_meetings_href = polymorphic_path([project, :meetings]) [ - menu_item(title: I18n.t(:label_my_meetings), selected: params[:current_href] == my_meetings_href), + menu_item(title: I18n.t(:label_my_meetings), + selected: params[:current_href] == my_meetings_href && params[:filters].blank?), recurring_menu_item, menu_item(title: I18n.t(:label_all_meetings), query_params: { filters: all_filter })