Skip to content

Commit

Permalink
Use translation key instead of fixed string
Browse files Browse the repository at this point in the history
  • Loading branch information
HDinger committed Feb 1, 2024
1 parent 839e710 commit ccf86e8
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ccf86e8

Please sign in to comment.