diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-10-15 18:12:27 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-10-15 18:12:27 +0000 |
commit | f97d23b1b7eda8a3b3ef19cec471805a6d530665 (patch) | |
tree | 1770527934eeff2865270ddf87bd864b9751b4bc /app/controllers | |
parent | 91d5465162b077461f4f4f3b75220de8ca0fc319 (diff) | |
download | redmine-f97d23b1b7eda8a3b3ef19cec471805a6d530665.tar.gz redmine-f97d23b1b7eda8a3b3ef19cec471805a6d530665.zip |
Isolates csv options for a hash param (#1159).
git-svn-id: http://svn.redmine.org/redmine/trunk@14674 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/issues_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 4238215eb..e8e1e3c05 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -79,7 +79,7 @@ class IssuesController < ApplicationController Issue.load_visible_relations(@issues) if include_in_api_response?('relations') } format.atom { render_feed(@issues, :title => "#{@project || Setting.app_title}: #{l(:label_issue_plural)}") } - format.csv { send_data(query_to_csv(@issues, @query, params), :type => 'text/csv; header=present', :filename => 'issues.csv') } + format.csv { send_data(query_to_csv(@issues, @query, params[:csv]), :type => 'text/csv; header=present', :filename => 'issues.csv') } format.pdf { send_file_headers! :type => 'application/pdf', :filename => 'issues.pdf' } end else |