Defect #26785 » fix-26785-v3.patch
app/controllers/issues_controller.rb | ||
---|---|---|
40 | 40 |
helper :timelog |
41 | 41 | |
42 | 42 |
def index |
43 |
retrieve_query |
|
43 |
use_session = !request.format.csv? |
|
44 |
retrieve_query(IssueQuery, use_session) |
|
44 | 45 | |
45 | 46 |
if @query.valid? |
46 | 47 |
respond_to do |format| |
test/functional/issues_controller_test.rb | ||
---|---|---|
803 | 803 |
end |
804 | 804 |
end |
805 | 805 | |
806 |
def test_index_csv_should_not_set_session_query |
|
807 |
original_value = session[:issue_query] = {:id=>4, :project_id=>1} |
|
808 |
get :index, :params => { |
|
809 |
:project_id => 1, |
|
810 |
:query_id => 5, |
|
811 |
:format => 'csv' |
|
812 |
} |
|
813 |
assert_response :success |
|
814 |
assert_kind_of Hash, session[:issue_query] |
|
815 |
assert_equal original_value, session[:issue_query] |
|
816 |
end |
|
817 | ||
806 | 818 |
def test_index_pdf |
807 | 819 |
["en", "zh", "zh-TW", "ja", "ko"].each do |lang| |
808 | 820 |
with_settings :default_language => lang do |
- « Previous
- 1
- …
- 5
- 6
- 7
- Next »