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

[#61619] fixed controler name

Eric Schubertb945d8860cf4
diff --git a/app/controllers/work_packages/types/subject_configuration_controller.rb b/app/controllers/work_packages/types/subject_configuration_tab_controller.rb
similarity index 97%
rename from app/controllers/work_packages/types/subject_configuration_controller.rb
rename to app/controllers/work_packages/types/subject_configuration_tab_controller.rb
index 4c5d8a6d322..f39837b1c27 100644
--- a/app/controllers/work_packages/types/subject_configuration_controller.rb
+++ b/app/controllers/work_packages/types/subject_configuration_tab_controller.rb
@@ -30,7 +30,7 @@
module WorkPackages
module Types
- class SubjectConfigurationController < ApplicationController
+ class SubjectConfigurationTabController < ApplicationController
layout "admin"
before_action :require_admin
diff --git a/config/routes.rb b/config/routes.rb
index ad87e08fcf0..c42f124de9a 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -136,7 +136,7 @@ Rails.application.routes.draw do
get "edit/:tab" => "types#edit", as: "edit_tab"
match "update/:tab" => "types#update", as: "update_tab", via: %i[post patch]
put :subject_configuration,
- controller: "work_packages/types/subject_configuration",
+ controller: "work_packages/types/subject_configuration_tab",
action: "update_subject_configuration"
end
diff --git a/spec/controllers/work_packages/types/subject_configuration_controller_spec.rb b/spec/controllers/work_packages/types/subject_configuration_tab_controller_spec.rb
similarity index 98%
rename from spec/controllers/work_packages/types/subject_configuration_controller_spec.rb
rename to spec/controllers/work_packages/types/subject_configuration_tab_controller_spec.rb
index d1fcb931f94..76c6aeb92b4 100644
--- a/spec/controllers/work_packages/types/subject_configuration_controller_spec.rb
+++ b/spec/controllers/work_packages/types/subject_configuration_tab_controller_spec.rb
@@ -31,7 +31,7 @@
require "spec_helper"
-RSpec.describe WorkPackages::Types::SubjectConfigurationController do
+RSpec.describe WorkPackages::Types::SubjectConfigurationTabController do
let(:user) { create(:admin) }
let(:wp_type) { create(:type) }