Fix issues and spent time CSV export does not include custom fields with "Full width layout" enabled (#33169).

Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@19632 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2020-04-01 16:20:10 +00:00
parent 0a80c4c14b
commit c7806ccbdf
3 changed files with 25 additions and 2 deletions

View File

@@ -777,6 +777,23 @@ class IssuesControllerTest < Redmine::ControllerTest
assert_select '#csv-export-form input[name=?][value=?]', 'f[]', ''
end
def test_index_should_show_block_columns_in_csv_export_form
field = IssueCustomField.
create!(
:name => 'Long text', :field_format => 'text',
:full_width_layout => '1',
:tracker_ids => [1], :is_for_all => true
)
get :index
assert_response :success
assert_select '#csv-export-form' do
assert_select 'input[value=?]', 'description'
assert_select 'input[value=?]', 'last_notes'
assert_select 'input[value=?]', "cf_#{field.id}"
end
end
def test_index_csv
get(:index, :params => {:format => 'csv'})
assert_response :success