summaryrefslogtreecommitdiffstats
path: root/app/views/issues
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-03-12 09:54:40 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-03-12 09:54:40 +0000
commitaeea7f7e23d806c6439d91949ca9e1c147920548 (patch)
tree0c84178cd096abb0ae4ad8c2f75249d0ce821d89 /app/views/issues
parentb121335eff9cf73dd127925b1945bef6cc4c5e8f (diff)
downloadredmine-aeea7f7e23d806c6439d91949ca9e1c147920548.tar.gz
redmine-aeea7f7e23d806c6439d91949ca9e1c147920548.zip
Adds query params as hidden field tags to the CSV export form (#22108).
git-svn-id: http://svn.redmine.org/redmine/trunk@15202 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/issues')
-rw-r--r--app/views/issues/index.html.erb6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/views/issues/index.html.erb b/app/views/issues/index.html.erb
index 8310dc73e..7cc2811f9 100644
--- a/app/views/issues/index.html.erb
+++ b/app/views/issues/index.html.erb
@@ -76,8 +76,10 @@
<% end %>
<div id="csv-export-options" style="display:none;">
- <h3 class="title"><%= l(:label_export_options, :export_format => 'CSV') %></h3>
- <%= form_tag(params.merge({:format => 'csv',:page=>nil}), :method => :get, :id => 'csv-export-form') do %>
+ <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 %>
<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>