diff options
Diffstat (limited to 'lib/banzai/filter/references/issue_reference_filter.rb')
-rw-r--r-- | lib/banzai/filter/references/issue_reference_filter.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/banzai/filter/references/issue_reference_filter.rb b/lib/banzai/filter/references/issue_reference_filter.rb index b536d900a02..9ad9d286ce3 100644 --- a/lib/banzai/filter/references/issue_reference_filter.rb +++ b/lib/banzai/filter/references/issue_reference_filter.rb @@ -22,7 +22,7 @@ module Banzai end def parent_records(parent, ids) - parent.issues.where(iid: ids.to_a) + parent.issues.where(iid: ids.to_a).includes(:project, :namespace, :work_item_type) end def object_link_text_extras(issue, matches) @@ -40,7 +40,7 @@ module Banzai private def additional_object_attributes(issue) - { issue_type: issue.issue_type } + { issue_type: issue.work_item_type.base_type } end def issue_path(issue, project) |