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

Demodulize controller name for default breadcrumb, to avoid translation missing error

Dombi Attila37527067e224
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 9aa5ae8ee0c..7ff88e514db 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -574,7 +574,7 @@ class ApplicationController < ActionController::Base
end
def default_breadcrumb
- label = "label_#{self.class.name.gsub('Controller', '').underscore.singularize}"
+ label = "label_#{self.class.name.demodulize.gsub('Controller', '').underscore.singularize}"
I18n.t(label + '_plural',
default: label.to_sym)