@@ -703,7 +703,7 module ApplicationHelper | |||||
703 | oid = identifier.to_i |
|
703 | oid = identifier.to_i | |
704 | case prefix |
|
704 | case prefix | |
705 | when nil |
|
705 | when nil | |
706 | if issue = Issue.visible.find_by_id(oid, :include => :status) |
|
706 | if oid.to_s == identifier && issue = Issue.visible.find_by_id(oid, :include => :status) | |
707 | anchor = comment_id ? "note-#{comment_id}" : nil |
|
707 | anchor = comment_id ? "note-#{comment_id}" : nil | |
708 | link = link_to("##{oid}", {:only_path => only_path, :controller => 'issues', :action => 'show', :id => oid, :anchor => anchor}, |
|
708 | link = link_to("##{oid}", {:only_path => only_path, :controller => 'issues', :action => 'show', :id => oid, :anchor => anchor}, | |
709 | :class => issue.css_classes, |
|
709 | :class => issue.css_classes, |
@@ -260,6 +260,8 RAW | |||||
260 | # ticket notes |
|
260 | # ticket notes | |
261 | '#3-14' => note_link, |
|
261 | '#3-14' => note_link, | |
262 | '#3#note-14' => note_link, |
|
262 | '#3#note-14' => note_link, | |
|
263 | # should not ignore leading zero | |||
|
264 | '#03' => '#03', | |||
263 | # changesets |
|
265 | # changesets | |
264 | 'r1' => changeset_link, |
|
266 | 'r1' => changeset_link, | |
265 | 'r1.' => "#{changeset_link}.", |
|
267 | 'r1.' => "#{changeset_link}.", |
General Comments 0
You need to be logged in to leave comments.
Login now