diff options
author | Adam Niedzielski <adamsunday@gmail.com> | 2017-06-08 18:09:04 +0200 |
---|---|---|
committer | Adam Niedzielski <adamsunday@gmail.com> | 2017-06-09 10:21:56 +0200 |
commit | 4bfd06e60e22a8100eddc2391d4842a8b6e53a6f (patch) | |
tree | 48c1ae60c3a144de4fcd4e00b2682e38ab0149fd /app/presenters | |
parent | 4a22895492fd7e9111f11b6659c31b509995721c (diff) | |
download | gitlab-ce-4bfd06e60e22a8100eddc2391d4842a8b6e53a6f.tar.gz |
Display issue state in issue links section of merge request widget33381-display-issue-state-in-mr-widget-issue-links
Diffstat (limited to 'app/presenters')
-rw-r--r-- | app/presenters/merge_request_presenter.rb | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/app/presenters/merge_request_presenter.rb b/app/presenters/merge_request_presenter.rb index 0db9e31031c..8bf35953d29 100644 --- a/app/presenters/merge_request_presenter.rb +++ b/app/presenters/merge_request_presenter.rb @@ -110,12 +110,24 @@ class MergeRequestPresenter < Gitlab::View::Presenter::Delegated end def closing_issues_links - markdown issues_sentence(project, closing_issues), pipeline: :gfm, author: author, project: project + markdown( + issues_sentence(project, closing_issues), + pipeline: :gfm, + author: author, + project: project, + issuable_state_filter_enabled: true + ) end def mentioned_issues_links mentioned_issues = issues_mentioned_but_not_closing(current_user) - markdown issues_sentence(project, mentioned_issues), pipeline: :gfm, author: author, project: project + markdown( + issues_sentence(project, mentioned_issues), + pipeline: :gfm, + author: author, + project: project, + issuable_state_filter_enabled: true + ) end def assign_to_closing_issues_link |