diff options
author | Jarka Kadlecova <jarka@gitlab.com> | 2017-11-22 16:20:35 +0300 |
---|---|---|
committer | Jarka Kadlecova <jarka@gitlab.com> | 2017-11-23 14:59:14 +0300 |
commit | e826c5d0917a7fe2225fb6ba0862bc56c1ef3fc2 (patch) | |
tree | e3e140a141541109d6cd23d8a36899ea57a20298 /app/models/milestone.rb | |
parent | 6369db0196ec7b6e288b16382c95243424a59b62 (diff) |
Fix link text from group context
Diffstat (limited to 'app/models/milestone.rb')
-rw-r--r-- | app/models/milestone.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/milestone.rb b/app/models/milestone.rb index e01e52131f0..01458120cda 100644 --- a/app/models/milestone.rb +++ b/app/models/milestone.rb @@ -162,18 +162,18 @@ class Milestone < ActiveRecord::Base # Milestone.first.to_reference(cross_namespace_project) # => "gitlab-org/gitlab-ce%1" # Milestone.first.to_reference(same_namespace_project) # => "gitlab-ce%1" # - def to_reference(from_project = nil, format: :name, full: false) + def to_reference(from = nil, format: :name, full: false) format_reference = milestone_format_reference(format) reference = "#{self.class.reference_prefix}#{format_reference}" if project - "#{project.to_reference(from_project, full: full)}#{reference}" + "#{project.to_reference(from, full: full)}#{reference}" else reference end end - def reference_link_text(from_project = nil) + def reference_link_text(from = nil) self.title end |