mirror of
https://github.com/redmine/redmine.git
synced 2025-11-01 10:56:17 +01:00
Fixed: PDF export of a issue list grouped by a custom field raises an error (#4600).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3333 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -236,6 +236,14 @@ class IssuesControllerTest < ActionController::TestCase
|
||||
assert_equal 'application/pdf', @response.content_type
|
||||
end
|
||||
|
||||
def test_index_pdf_with_query_grouped_by_list_custom_field
|
||||
get :index, :project_id => 1, :query_id => 9, :format => 'pdf'
|
||||
assert_response :success
|
||||
assert_not_nil assigns(:issues)
|
||||
assert_not_nil assigns(:issue_count_by_group)
|
||||
assert_equal 'application/pdf', @response.content_type
|
||||
end
|
||||
|
||||
def test_index_sort
|
||||
get :index, :sort => 'tracker,id:desc'
|
||||
assert_response :success
|
||||
|
||||
Reference in New Issue
Block a user