mirror of
https://github.com/redmine/redmine.git
synced 2025-11-15 09:46:02 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user