Patch #10628 ยป export-issues-with-project-name.diff
app/controllers/issues_controller.rb | ||
---|---|---|
84 | 84 |
format.api { |
85 | 85 |
Issue.load_relations(@issues) if include_in_api_response?('relations') |
86 | 86 |
} |
87 |
format.atom { render_feed(@issues, :title => "#{@project || Setting.app_title}: #{l(:label_issue_plural)}") } |
|
88 |
format.csv { send_data(issues_to_csv(@issues, @project, @query, params), :type => 'text/csv; header=present', :filename => 'export.csv') } |
|
89 |
format.pdf { send_data(issues_to_pdf(@issues, @project, @query), :type => 'application/pdf', :filename => 'export.pdf') } |
|
87 |
export_title = "#{@project || Setting.app_title} - #{l(:label_issue_plural)}" |
|
88 |
format.atom { render_feed(@issues, :title => export_title) } |
|
89 |
format.csv { send_data(issues_to_csv(@issues, @project, @query, params), :type => 'text/csv; header=present', :filename => "#{export_title}.csv") } |
|
90 |
format.pdf { send_data(issues_to_pdf(@issues, @project, @query), :type => 'application/pdf', :filename => "#{export_title}.pdf") } |
|
90 | 91 |
end |
91 | 92 |
else |
92 | 93 |
respond_to do |format| |