Defect #23206 » fix_csv_export_when_issues_filter_is_blank.diff
| app/helpers/queries_helper.rb (working copy) | ||
|---|---|---|
| 257 | 257 |
tags << hidden_field_tag("v[#{field}][]", value, :id => nil)
|
| 258 | 258 |
end |
| 259 | 259 |
end |
| 260 |
else |
|
| 261 |
tags << hidden_field_tag("f[]", "", :id => nil)
|
|
| 260 | 262 |
end |
| 261 | 263 |
if query.column_names.present? |
| 262 | 264 |
query.column_names.each do |name| |
| test/functional/issues_controller_test.rb (working copy) | ||
|---|---|---|
| 488 | 488 | |
| 489 | 489 |
assert_select 'input[name=?][value=?]', 'sort', 'status' |
| 490 | 490 |
end |
| 491 | ||
| 492 |
get :index, :project_id => 1, :set_filter => "1", :f => [] |
|
| 493 |
assert_select '#csv-export-form input[name=?][value=?]', 'f[]', '' |
|
| 491 | 494 |
end |
| 492 | 495 | |
| 493 | 496 |
def test_index_csv |