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

Use translation key instead of fixed string

Henriette Dargeccf86e835100
diff --git a/modules/gantt/app/services/gantt/default_query_generator_service.rb b/modules/gantt/app/services/gantt/default_query_generator_service.rb
index 328da19dc9b..6c11f2c9f9d 100644
--- a/modules/gantt/app/services/gantt/default_query_generator_service.rb
+++ b/modules/gantt/app/services/gantt/default_query_generator_service.rb
@@ -122,7 +122,11 @@ module ::Gantt
def phase_ids(project)
if project.present?
- ::Type.enabled_in(project.id).where(name: 'Phase').pluck(:id).map(&:to_s)
+ ::Type
+ .enabled_in(project.id)
+ .where(name: I18n.t('seeds.standard.types.item_2.name', default: 'Phase'))
+ .pluck(:id)
+ .map(&:to_s)
else
::Type.where(name: 'Phase').pluck(:id).map(&:to_s)
end