diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 99dc687f..9c16d299 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -41,7 +41,7 @@ class IssuesController < ApplicationController def export_pdf @custom_values = @issue.custom_values.find(:all, :include => :custom_field) @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 def edit diff --git a/app/models/issue.rb b/app/models/issue.rb index 6dc812ce..52aaa093 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -82,10 +82,6 @@ class Issue < ActiveRecord::Base def after_save relations_from.each(&:set_issue_to_dates) - end - - def long_id - "%05d" % self.id end def custom_value_for(custom_field) diff --git a/app/views/issues/_pdf.rfpdf b/app/views/issues/_pdf.rfpdf index 39dfd90d..48506689 100644 --- a/app/views/issues/_pdf.rfpdf +++ b/app/views/issues/_pdf.rfpdf @@ -1,5 +1,5 @@ <% 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 y0 = pdf.GetY diff --git a/app/views/projects/move_issues.rhtml b/app/views/projects/move_issues.rhtml index 57fc51e4..fd8edb20 100644 --- a/app/views/projects/move_issues.rhtml +++ b/app/views/projects/move_issues.rhtml @@ -6,7 +6,7 @@

<% for issue in @issues %> - <%= link_to issue.long_id, :controller => 'issues', :action => 'show', :id => issue %> - <%=h issue.subject %> + <%= link_to_issue issue %>: <%=h issue.subject %> <%= hidden_field_tag "issue_ids[]", issue.id %>
<% end %> (<%= @issues.length%> <%= lwr(:label_issue, @issues.length)%>)