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

Start implementation for non-project scoped meetings

Klaus Zanders45299b7f80e7
diff --git a/config/routes.rb b/config/routes.rb
index 5f2b06ff1e1..2ed7b503afb 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -462,6 +462,8 @@ OpenProject::Application.routes.draw do
resources :activity, :activities, only: :index, controller: 'activities'
+ resources :meetings, only: :index
+
resources :users, except: :edit do
resources :memberships, controller: 'users/memberships', only: %i[update create destroy]
diff --git a/modules/meeting/app/controllers/meetings_controller.rb b/modules/meeting/app/controllers/meetings_controller.rb
index 58456947f7f..64e874683d3 100644
--- a/modules/meeting/app/controllers/meetings_controller.rb
+++ b/modules/meeting/app/controllers/meetings_controller.rb
@@ -42,7 +42,9 @@ class MeetingsController < ApplicationController
menu_item :new_meeting, only: %i[new create]
def index
- scope = @project.meetings
+ # TODO: Scope only to relevant meetings (definition still TBD) in case of non-
+ # project index page.
+ scope = @project ? @project.meetings : Meeting.all
# from params => today's page otherwise => first page as fallback
tomorrows_meetings_count = scope.from_tomorrow.count