From ccf86e8351002189c659b9d834b8ee26dcbd6eb7 Mon Sep 17 00:00:00 2001 From: Henriette Darge Date: Thu, 1 Feb 2024 16:44:23 +0100 Subject: [PATCH] Use translation key instead of fixed string --- .../app/services/gantt/default_query_generator_service.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 328da19dc9b9..6c11f2c9f9da 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 @@ def milestone_ids(project) 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