Issue#long_id no more used and removed

git-svn-id: http://redmine.rubyforge.org/svn/trunk@510 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2007-05-05 15:55:50 +00:00
parent 0dbbf776c6
commit 71e6f22670
4 changed files with 3 additions and 7 deletions

View File

@ -41,7 +41,7 @@ class IssuesController < ApplicationController
def export_pdf def export_pdf
@custom_values = @issue.custom_values.find(:all, :include => :custom_field) @custom_values = @issue.custom_values.find(:all, :include => :custom_field)
@options_for_rfpdf ||= {} @options_for_rfpdf ||= {}
@options_for_rfpdf[:file_name] = "#{@project.name}_#{@issue.long_id}.pdf" @options_for_rfpdf[:file_name] = "#{@project.name}_#{@issue.id}.pdf"
end end
def edit def edit

View File

@ -82,10 +82,6 @@ class Issue < ActiveRecord::Base
def after_save def after_save
relations_from.each(&:set_issue_to_dates) relations_from.each(&:set_issue_to_dates)
end
def long_id
"%05d" % self.id
end end
def custom_value_for(custom_field) def custom_value_for(custom_field)

View File

@ -1,5 +1,5 @@
<% pdf.SetFontStyle('B',11) <% pdf.SetFontStyle('B',11)
pdf.Cell(190,10, "#{issue.project.name} - #{issue.tracker.name} # #{issue.long_id} - #{issue.subject}") pdf.Cell(190,10, "#{issue.project.name} - #{issue.tracker.name} # #{issue.id}: #{issue.subject}")
pdf.Ln pdf.Ln
y0 = pdf.GetY y0 = pdf.GetY

View File

@ -6,7 +6,7 @@
<div class="box"> <div class="box">
<p><label><%= l(:label_issue_plural) %>:</label> <p><label><%= l(:label_issue_plural) %>:</label>
<% for issue in @issues %> <% for issue in @issues %>
<b><%= link_to issue.long_id, :controller => 'issues', :action => 'show', :id => issue %></b> - <%=h issue.subject %> <%= link_to_issue issue %>: <%=h issue.subject %>
<%= hidden_field_tag "issue_ids[]", issue.id %><br /> <%= hidden_field_tag "issue_ids[]", issue.id %><br />
<% end %> <% end %>
<i>(<%= @issues.length%> <%= lwr(:label_issue, @issues.length)%>)</i></p> <i>(<%= @issues.length%> <%= lwr(:label_issue, @issues.length)%>)</i></p>