diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2023-11-12 10:59:41 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2023-11-12 10:59:41 +0000 |
commit | b30c77453fb2ae2d0a7279d38c000c6249802910 (patch) | |
tree | 5f94e412e05a90c0c22623745cf6824e558e6971 /test | |
parent | 67396eeaaf92750c72c635a53dd657aecdb3a53e (diff) | |
download | redmine-b30c77453fb2ae2d0a7279d38c000c6249802910.tar.gz redmine-b30c77453fb2ae2d0a7279d38c000c6249802910.zip |
Merged r22418 from trunk to 5.1-stable (#39534).
git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@22423 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/issues_controller_test.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index b8580cd15..341a508fa 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -1194,6 +1194,29 @@ class IssuesControllerTest < Redmine::ControllerTest assert_equal 'application/pdf', @response.media_type end + def test_index_pdf_with_query_grouped_by_full_width_text_custom_field + field = IssueCustomField. + create!( + :name => 'Long text', :field_format => 'text', + :full_width_layout => '1', + :tracker_ids => [1,3], :is_for_all => true + ) + issue = Issue.find(1) + issue.custom_field_values = {field.id => 'This is a long text'} + issue.save! + + get( + :index, + :params => { + :set_filter => 1, + :c => ['subject', 'description', "cf_#{field.id}"], + :format => 'pdf' + } + ) + assert_response :success + assert_equal 'application/pdf', @response.media_type + end + def test_index_pdf_filename_without_query get :index, :params => {:format => 'pdf'} assert_response :success |