diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-04-03 12:09:59 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-04-03 12:09:59 +0000 |
commit | 8e2482d2c195c461751302e552aa4ebd76c6d85a (patch) | |
tree | dc8123c7b71fb169fb4da9bdc248889a9db0bfb1 | |
parent | c5c5456d7268f4a92906d315115f98b8ef6024d7 (diff) | |
download | redmine-8e2482d2c195c461751302e552aa4ebd76c6d85a.tar.gz redmine-8e2482d2c195c461751302e552aa4ebd76c6d85a.zip |
Sort criteria defined in custom queries are not applied when exporting to CSV (#22354).
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@15298 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/views/issues/index.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/issues/index.html.erb b/app/views/issues/index.html.erb index f32e1beee..0d1f008ca 100644 --- a/app/views/issues/index.html.erb +++ b/app/views/issues/index.html.erb @@ -79,7 +79,7 @@ <h3 class="title"><%= l(:label_export_options, :export_format => 'CSV') %></h3> <%= form_tag(_project_issues_path(@project, :format => 'csv'), :method => :get, :id => 'csv-export-form') do %> <%= query_as_hidden_field_tags(@query) %> - <%= hidden_field_tag 'sort', params[:sort], :id => nil %> + <%= hidden_field_tag 'sort', @sort_criteria.to_param, :id => nil %> <p> <label><%= radio_button_tag 'csv[columns]', '', true %> <%= l(:description_selected_columns) %></label><br /> <label><%= radio_button_tag 'csv[columns]', 'all' %> <%= l(:description_all_columns) %></label> |