##// END OF EJS Templates
Don't turn #nnn with leading zeros into link (#11494)....
Jean-Philippe Lang -
r9894:28cdc8adfc5d
parent child
Show More
@@ -703,7 +703,7 module ApplicationHelper
703 703 oid = identifier.to_i
704 704 case prefix
705 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 707 anchor = comment_id ? "note-#{comment_id}" : nil
708 708 link = link_to("##{oid}", {:only_path => only_path, :controller => 'issues', :action => 'show', :id => oid, :anchor => anchor},
709 709 :class => issue.css_classes,
@@ -260,6 +260,8 RAW
260 260 # ticket notes
261 261 '#3-14' => note_link,
262 262 '#3#note-14' => note_link,
263 # should not ignore leading zero
264 '#03' => '#03',
263 265 # changesets
264 266 'r1' => changeset_link,
265 267 'r1.' => "#{changeset_link}.",
General Comments 0
You need to be logged in to leave comments. Login now