summaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-10-01 08:53:31 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-10-01 08:53:31 +0000
commit1810283a6684cbc8c7ce55ccfb9c4a58dbc312a9 (patch)
tree79492736aa32fc7871f71e40460294cc03c48254 /test/integration
parent190f4c15c25449d35cdf60488f1472647379b21a (diff)
downloadredmine-1810283a6684cbc8c7ce55ccfb9c4a58dbc312a9.tar.gz
redmine-1810283a6684cbc8c7ce55ccfb9c4a58dbc312a9.zip
Error with MS SQL when displaying an issue from a list grouped and sorted by fixed version (#23839).
git-svn-id: http://svn.redmine.org/redmine/trunk@15852 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/issues_test.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/integration/issues_test.rb b/test/integration/issues_test.rb
index 2e8587d5a..86c0db68a 100644
--- a/test/integration/issues_test.rb
+++ b/test/integration/issues_test.rb
@@ -109,6 +109,18 @@ class IssuesTest < Redmine::IntegrationTest
assert_equal 0, Issue.find(1).attachments.length
end
+ def test_next_and_previous_links_should_be_displayed_after_query_grouped_and_sorted_by_version
+ with_settings :default_language => 'en' do
+ get '/projects/ecookbook/issues?set_filter=1&group_by=fixed_version&sort=priority:desc,fixed_version'
+ assert_response :success
+ assert_select 'td.id', :text => '5'
+
+ get '/issues/5'
+ assert_response :success
+ assert_select '.next-prev-links .position', :text => '5 of 6'
+ end
+ end
+
def test_next_and_previous_links_should_be_displayed_after_filter
with_settings :default_language => 'en' do
get '/projects/ecookbook/issues?set_filter=1&tracker_id=1'