Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Merge pull request #17923 from opf/fix/meetings-project-scope

Oliver Güntherd4cc7c103a2a
diff --cc modules/meeting/app/menus/meetings/menu.rb
index d99f4554f4d,a1cdc930334..cd0ecc1257c
--- a/modules/meeting/app/menus/meetings/menu.rb
+++ b/modules/meeting/app/menus/meetings/menu.rb
@@@ -58,21 -58,16 +58,22 @@@ module Meeting
def all_meetings_item
all_filter = [{ invited_user_id: { operator: "*", values: [] } }].to_json
my_meetings_href = polymorphic_path([project, :meetings])
+ query_params = { filters: all_filter }
- menu_item(title: I18n.t(:label_all_meetings),
- selected: User.current.anonymous? && params[:current_href] == my_meetings_href && params[:filters].blank?,
- query_params: { filters: all_filter })
+ if User.current.anonymous?
+ menu_item(title: I18n.t(:label_all_meetings),
+ selected: params[:current_href] == my_meetings_href && (params[:filters].blank? || selected?(query_params)),
+ query_params:)
+ else
+ menu_item(title: I18n.t(:label_all_meetings),
+ query_params:)
+ end
end
- def meeting_series_menu_items
+ def meeting_series_menu_items # rubocop:disable Metrics/AbcSize
series = RecurringMeeting
.visible
+ .includes(:project)
.reorder("LOWER(title)")
if project