0007-Preserve-leading-zeros-in-nnn-issue-links.patch

Alex Shulgin, 2012-07-24 13:55

Download (1.76 KB)

View differences:

app/helpers/application_helper.rb
697 697
          when nil
698 698
            if issue = Issue.visible.find_by_id(oid, :include => :status)
699 699
              anchor = comment_id ? "note-#{comment_id}" : nil
700
              link = link_to("##{oid}", {:only_path => only_path, :controller => 'issues', :action => 'show', :id => oid, :anchor => anchor},
700
              # Use pristine identifier instead of oid to preserve any
701
              # leading zeros.
702
              link = link_to("##{identifier}", {:only_path => only_path, :controller => 'issues', :action => 'show', :id => oid, :anchor => anchor},
701 703
                                        :class => issue.css_classes,
702 704
                                        :title => "#{truncate(issue.subject, :length => 100)} (#{issue.status.name})")
703 705
            end
704
-