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

Remove cost report member "index" route

Oliver Günther161b02e9005a
diff --git a/modules/reporting/app/menus/cost_reports/menu.rb b/modules/reporting/app/menus/cost_reports/menu.rb
index ca84e755d14..7a6e765aa3c 100644
--- a/modules/reporting/app/menus/cost_reports/menu.rb
+++ b/modules/reporting/app/menus/cost_reports/menu.rb
@@ -67,7 +67,7 @@ module CostReports
def query_path(query_params)
if project.present?
- project_cost_report_path(project, query_params)
+ cost_report_path(project, query_params)
else
global_cost_report_path(query_params)
end
diff --git a/modules/reporting/config/routes.rb b/modules/reporting/config/routes.rb
index 9e4df2f9f55..fd7eafec530 100644
--- a/modules/reporting/config/routes.rb
+++ b/modules/reporting/config/routes.rb
@@ -35,7 +35,6 @@ Rails.application.routes.draw do
end
member do
- get :index, as: :project
post :update
post :rename
end
@@ -55,7 +54,6 @@ Rails.application.routes.draw do
end
member do
- get :index, as: :global
post :update
post :rename
end