From 0f8d7cb318c00c52a9398437e9fd989304f9c7fb Mon Sep 17 00:00:00 2001 From: Alexander Date: Wed, 4 Dec 2024 19:15:03 +0300 Subject: [PATCH] Fix BCF issue associated filter naming --- .../work_packages/filter/bcf_issue_associated_filter.rb | 4 ++++ modules/bim/config/locales/en.yml | 1 + 2 files changed, 5 insertions(+) diff --git a/modules/bim/app/models/bim/queries/work_packages/filter/bcf_issue_associated_filter.rb b/modules/bim/app/models/bim/queries/work_packages/filter/bcf_issue_associated_filter.rb index a92b82e8ef2b..1ce6ffce8a2f 100644 --- a/modules/bim/app/models/bim/queries/work_packages/filter/bcf_issue_associated_filter.rb +++ b/modules/bim/app/models/bim/queries/work_packages/filter/bcf_issue_associated_filter.rb @@ -41,6 +41,10 @@ def allowed_values ] end + def human_name + I18n.t("bcf.label_bcf_issue_associated") + end + def where if associated? ::Queries::Operators::All.sql_for_field(values, ::Bim::Bcf::Issue.table_name, "id") diff --git a/modules/bim/config/locales/en.yml b/modules/bim/config/locales/en.yml index a500501d80ce..d8636669aa9a 100644 --- a/modules/bim/config/locales/en.yml +++ b/modules/bim/config/locales/en.yml @@ -11,6 +11,7 @@ en: label_bcf: 'BCF' label_imported_failed: 'Failed imports of BCF topics' label_imported_successfully: 'Successfully imported BCF topics' + label_bcf_issue_associated: "BCF issue associated" issues: "Issues" recommended: 'recommended' not_recommended: 'not recommended'