@@ -41,7 +41,7 class IssuesController < ApplicationController | |||
|
41 | 41 | def export_pdf |
|
42 | 42 | @custom_values = @issue.custom_values.find(:all, :include => :custom_field) |
|
43 | 43 | @options_for_rfpdf ||= {} |
|
44 |
@options_for_rfpdf[:file_name] = "#{@project.name}_#{@issue. |
|
|
44 | @options_for_rfpdf[:file_name] = "#{@project.name}_#{@issue.id}.pdf" | |
|
45 | 45 | end |
|
46 | 46 | |
|
47 | 47 | def edit |
@@ -82,10 +82,6 class Issue < ActiveRecord::Base | |||
|
82 | 82 | |
|
83 | 83 | def after_save |
|
84 | 84 | relations_from.each(&:set_issue_to_dates) |
|
85 | end | |
|
86 | ||
|
87 | def long_id | |
|
88 | "%05d" % self.id | |
|
89 | 85 | end |
|
90 | 86 | |
|
91 | 87 | def custom_value_for(custom_field) |
@@ -1,5 +1,5 | |||
|
1 | 1 | <% pdf.SetFontStyle('B',11) |
|
2 |
pdf.Cell(190,10, "#{issue.project.name} - #{issue.tracker.name} # #{issue. |
|
|
2 | pdf.Cell(190,10, "#{issue.project.name} - #{issue.tracker.name} # #{issue.id}: #{issue.subject}") | |
|
3 | 3 | pdf.Ln |
|
4 | 4 | |
|
5 | 5 | y0 = pdf.GetY |
@@ -6,7 +6,7 | |||
|
6 | 6 | <div class="box"> |
|
7 | 7 | <p><label><%= l(:label_issue_plural) %>:</label> |
|
8 | 8 | <% for issue in @issues %> |
|
9 | <b><%= link_to issue.long_id, :controller => 'issues', :action => 'show', :id => issue %></b> - <%=h issue.subject %> | |
|
9 | <%= link_to_issue issue %>: <%=h issue.subject %> | |
|
10 | 10 | <%= hidden_field_tag "issue_ids[]", issue.id %><br /> |
|
11 | 11 | <% end %> |
|
12 | 12 | <i>(<%= @issues.length%> <%= lwr(:label_issue, @issues.length)%>)</i></p> |
General Comments 0
You need to be logged in to leave comments.
Login now