Read about our upcoming Code of Conduct on this issue

This instance will be upgraded to Heptapod 0.28.0 on 2022-01-18 at 14:00 UTC+1 (a few minutes of down time)

Commit c85c6815 authored by Berna Castro's avatar Berna Castro Committed by Oswaldo Ferreira
Browse files

Add the group path to the issue ID if applicable

parent 019e6913af19
......@@ -591,10 +591,18 @@ def to_param
end
end
def to_reference(from_project = nil, full: false)
if full || cross_namespace_reference?(from_project)
path_with_namespace
elsif cross_project_reference?(from_project)
def to_reference(from_project = nil, from_group = nil)
if from_group.nil?
if cross_namespace_reference?(from_project)
path_with_namespace
elsif cross_project_reference?(from_project)
path
elsif self == from_project
nil
else
path_with_namespace
end
else
path
end
end
......
......@@ -34,7 +34,7 @@
= note_count
.issue-info
#{issue.to_reference} ·
#{issue.to_reference(@project, @group)} ·
opened #{time_ago_with_tooltip(issue.created_at, placement: 'bottom')}
by #{link_to_member(@project, issue.author, avatar: false)}
- if issue.milestone
......
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