summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-05-16 07:03:14 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-05-16 07:03:14 +0000
commit14beafcc24af288cabea00637c11e4df92b8d959 (patch)
treec777b05e0a4357be31e3f45e5a13fab4b4841a18 /test
parent7d6b3d344db870e1417fc5a08413729b60e7ce77 (diff)
downloadredmine-14beafcc24af288cabea00637c11e4df92b8d959.tar.gz
redmine-14beafcc24af288cabea00637c11e4df92b8d959.zip
Malformed SQL query with SQLServer when grouping and sorting by fixed version (#22808).
git-svn-id: http://svn.redmine.org/redmine/trunk@15416 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/functional/issues_controller_test.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 8e04d7cf5..32f9d8f11 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -273,6 +273,22 @@ class IssuesControllerTest < ActionController::TestCase
assert_not_nil assigns(:issue_count_by_group)
end
+ def test_index_with_query_grouped_and_sorted_by_fixed_version
+ get :index, :project_id => 1, :set_filter => 1, :group_by => "fixed_version", :sort => "fixed_version"
+ assert_response :success
+ assert_template 'index'
+ assert_not_nil assigns(:issues)
+ assert_not_nil assigns(:issue_count_by_group)
+ end
+
+ def test_index_with_query_grouped_and_sorted_by_fixed_version_in_reverse_order
+ get :index, :project_id => 1, :set_filter => 1, :group_by => "fixed_version", :sort => "fixed_version:desc"
+ assert_response :success
+ assert_template 'index'
+ assert_not_nil assigns(:issues)
+ assert_not_nil assigns(:issue_count_by_group)
+ end
+
def test_index_with_query_grouped_by_list_custom_field
get :index, :project_id => 1, :query_id => 9
assert_response :success