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

fix routing specs

Klaus Zanderscb97863bbc9e
diff --git a/modules/costs/app/views/costs_settings/show.html.erb b/modules/costs/app/views/costs_settings/show.html.erb
index fcaf0d1361b..a45cecca679 100644
--- a/modules/costs/app/views/costs_settings/show.html.erb
+++ b/modules/costs/app/views/costs_settings/show.html.erb
@@ -27,13 +27,13 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<% html_title t(:label_administration), t(:label_costs) %>
+<% html_title t(:label_administration), t("plugin_costs.name") %>
<%=
render(Primer::OpenProject::PageHeader.new) do |header|
- header.with_title { t(:label_costs) }
+ header.with_title { t("plugin_costs.name") }
header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },
- t(:label_costs)])
+ t("plugin_costs.name")])
end
%>
diff --git a/modules/costs/lib/costs/engine.rb b/modules/costs/lib/costs/engine.rb
index 0c9f1df6f76..7963f2c7095 100644
--- a/modules/costs/lib/costs/engine.rb
+++ b/modules/costs/lib/costs/engine.rb
@@ -118,7 +118,7 @@ module Costs
# Menu extensions
menu :admin_menu,
:admin_costs,
- { controller: "costs_settings", action: :show },
+ { controller: "/costs_settings", action: :show },
if: Proc.new { User.current.admin? },
caption: :project_module_costs,
after: :enterprise,
@@ -126,7 +126,7 @@ module Costs
menu :admin_menu,
:costs_settings,
- { controller: "costs_settings", action: :show },
+ { controller: "/costs_settings", action: :show },
if: Proc.new { User.current.admin? },
caption: :label_setting_plural,
parent: :admin_costs
diff --git a/modules/xls_export/lib/open_project/xls_export/xls_views.rb b/modules/xls_export/lib/open_project/xls_export/xls_views.rb
index 1c64b2eb3e1..859039037cb 100644
--- a/modules/xls_export/lib/open_project/xls_export/xls_views.rb
+++ b/modules/xls_export/lib/open_project/xls_export/xls_views.rb
@@ -61,7 +61,7 @@ class OpenProject::XlsExport::XlsViews
end
def currency_format
- "#,##0.00 [$#{Setting.plugin_costs['costs_currency']}]"
+ "#,##0.00 [$#{Setting.costs_currency}]"
end
def number_format