From: Jean-Philippe Lang Date: Sun, 3 Apr 2016 12:09:59 +0000 (+0000) Subject: Sort criteria defined in custom queries are not applied when exporting to CSV (#22354). X-Git-Tag: 3.3.0~154 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8e2482d2c195c461751302e552aa4ebd76c6d85a;p=redmine.git 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 --- 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 @@

<%= l(:label_export_options, :export_format => 'CSV') %>

<%= 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 %>