mirror of
https://github.com/redmine/redmine.git
synced 2026-05-06 20:36:53 +02:00
Fixed: error when displaying an issue with a query sorted by an association, eg. priority (#9936).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8569 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -947,6 +947,20 @@ class IssuesControllerTest < ActionController::TestCase
|
||||
assert_tag 'a', :attributes => {:href => '/issues/5'}, :content => /Next/
|
||||
end
|
||||
|
||||
def test_show_should_display_prev_next_links_with_query_and_sort_on_association
|
||||
@request.session[:query] = {:filters => {'status_id' => {:values => [''], :operator => 'o'}}, :project_id => nil}
|
||||
|
||||
%w(project tracker status priority author assigned_to category fixed_version).each do |assoc_sort|
|
||||
@request.session['issues_index_sort'] = assoc_sort
|
||||
|
||||
get :show, :id => 3
|
||||
assert_response :success, "Wrong response status for #{assoc_sort} sort"
|
||||
|
||||
assert_tag 'a', :content => /Previous/
|
||||
assert_tag 'a', :content => /Next/
|
||||
end
|
||||
end
|
||||
|
||||
def test_show_should_display_prev_next_links_with_project_query_in_session
|
||||
@request.session[:query] = {:filters => {'status_id' => {:values => [''], :operator => 'o'}}, :project_id => 1}
|
||||
@request.session['issues_index_sort'] = 'id'
|
||||
|
||||
Reference in New Issue
Block a user