mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-24 01:11:12 +00:00
Make sure that "is not" operator for Subproject filter does not exclude closed subprojects (#34375).
The issue has been fixed in r20693 along with #34297. git-svn-id: http://svn.redmine.org/redmine/trunk@20694 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
36b5c32048
commit
93d98bfff8
@ -138,6 +138,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
|
||||
with_settings :display_subprojects_issues => '1' do
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user