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
626 626
          case prefix
627 627
          when nil
628 628
            if issue = Issue.visible.find_by_id(oid, :include => :status)
629
              link = link_to("##{oid}", {:only_path => only_path, :controller => 'issues', :action => 'show', :id => oid},
629
              # Use pristine identifier instead of oid to preserve any
630
              # leading zeros.
631
              link = link_to("##{identifier}", {:only_path => only_path, :controller => 'issues', :action => 'show', :id => oid},
630 632
                                        :class => issue.css_classes,
631 633
                                        :title => "#{truncate(issue.subject, :length => 100)} (#{issue.status.name})")
632 634
            end
    (1-1/1)