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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Start implementation for non-project scoped meetings
Klaus Zanders45299b7f80e7
diff --git a/config/routes.rb b/config/routes.rbindex 5f2b06ff1e1..2ed7b503afb 100644--- a/config/routes.rb+++ b/config/routes.rb@@ -462,6 +462,8 @@ OpenProject::Application.routes.draw doresources :activity, :activities, only: :index, controller: 'activities'+ resources :meetings, only: :index+resources :users, except: :edit doresources :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.rbindex 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 < ApplicationControllermenu_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 fallbacktomorrows_meetings_count = scope.from_tomorrow.count