Skip to content

Commit

Permalink
Merge pull request #14699 from opf/fix/use-translation-key-for-defaul…
Browse files Browse the repository at this point in the history
…t-query

Use translation key instead of fixed string
  • Loading branch information
HDinger authored Feb 1, 2024
2 parents 839e710 + ccf86e8 commit 3089f40
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 3089f40

Please sign in to comment.