mirror of
https://github.com/meineerde/redmine.git
synced 2026-03-10 19:23:06 +00:00
Merged r17686 from trunk to 3.4-stable (#26785).
git-svn-id: http://svn.redmine.org/redmine/branches/3.4-stable@17687 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
1b8d448b82
commit
57bfd3a186
@ -40,7 +40,8 @@ class IssuesController < ApplicationController
|
||||
helper :timelog
|
||||
|
||||
def index
|
||||
retrieve_query
|
||||
use_session = !request.format.csv?
|
||||
retrieve_query(IssueQuery, use_session)
|
||||
|
||||
if @query.valid?
|
||||
respond_to do |format|
|
||||
|
||||
@ -773,6 +773,25 @@ class IssuesControllerTest < Redmine::ControllerTest
|
||||
end
|
||||
end
|
||||
|
||||
def test_index_csv_should_not_change_selected_columns
|
||||
get :index, :params => {
|
||||
:set_filter => 1,
|
||||
:c => ["subject", "due_date"],
|
||||
:project_id => "ecookbook"
|
||||
}
|
||||
assert_response :success
|
||||
assert_equal [:subject, :due_date], session[:issue_query][:column_names]
|
||||
|
||||
get :index, :params => {
|
||||
:set_filter => 1,
|
||||
:c =>["all_inline"],
|
||||
:project_id => "ecookbook",
|
||||
:format => 'csv'
|
||||
}
|
||||
assert_response :success
|
||||
assert_equal [:subject, :due_date], session[:issue_query][:column_names]
|
||||
end
|
||||
|
||||
def test_index_pdf
|
||||
["en", "zh", "zh-TW", "ja", "ko"].each do |lang|
|
||||
with_settings :default_language => lang do
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user