Commit c674c119 authored by Phil Hughes's avatar Phil Hughes

Correctly shows close button on merge requests

Closes #19403
parent ab81ea1e
......@@ -102,7 +102,7 @@ module IssuesHelper
end
def issue_button_visibility(issue, closed)
return 'hidden' if issue.closed? == closed
return 'hidden' if issue.closed? == closed || (issue.try(:merged?) == closed && !issue.closed?)
end
def merge_requests_sentence(merge_requests)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment