Project

General

Profile

Patch #9022 ยป 0001-Preserve-leading-zeros-in-nnn-issue-links.patch

Alex Shulgin, 2011-08-10 09:35

View differences:

app/helpers/application_helper.rb
case prefix
when nil
if issue = Issue.visible.find_by_id(oid, :include => :status)
link = link_to("##{oid}", {:only_path => only_path, :controller => 'issues', :action => 'show', :id => oid},
# Use pristine identifier instead of oid to preserve any
# leading zeros.
link = link_to("##{identifier}", {:only_path => only_path, :controller => 'issues', :action => 'show', :id => oid},
:class => issue.css_classes,
:title => "#{truncate(issue.subject, :length => 100)} (#{issue.status.name})")
end
    (1-1/1)