diff options
author | Go MAEDA <maeda@farend.jp> | 2020-12-29 07:13:29 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-12-29 07:13:29 +0000 |
commit | 61adb7ac9ab2531cf882a5ccfa80f1c8ea940a2f (patch) | |
tree | 3104767c4f9a2d09b283c880115f6058adc6ddfc /test | |
parent | 66c988a24edfafb10e930f3b9e91653b7b6f3f8d (diff) | |
download | redmine-61adb7ac9ab2531cf882a5ccfa80f1c8ea940a2f.tar.gz redmine-61adb7ac9ab2531cf882a5ccfa80f1c8ea940a2f.zip |
Merged r20694 from trunk to 4.1-stable (#34375).
git-svn-id: http://svn.redmine.org/redmine/branches/4.1-stable@20697 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/issues_controller_test.rb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index a6ed60b26..c53cfb391 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -143,6 +143,30 @@ class IssuesControllerTest < Redmine::ControllerTest end end + def test_index_with_subproject_filter_should_not_exclude_closed_subprojects_issues + subproject1 = Project.find(3) + subproject2 = Project.find(4) + subproject1.close + + with_settings :display_subprojects_issues => '1' do + get( + :index, + :params => { + :project_id => 1, + :set_filter => 1, + :f => ['subproject_id'], + :op => {'subproject_id' => '!'}, + :v => {'subproject_id' => [subproject2.id.to_s]}, + :c => ['project'] + } + ) + end + assert_response :success + column_values = columns_values_in_list('project') + assert_includes column_values, subproject1.name + assert_equal 9, column_values.size + end + def test_index_with_project_and_subprojects_should_show_private_subprojects_with_permission @request.session[:user_id] = 2 Setting.display_subprojects_issues = 1 |