mirror of
https://github.com/redmine/redmine.git
synced 2025-11-02 03:15:57 +01:00
Fix project selector on global new issue page not showing all visible projects (#33419).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@20733 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -3170,6 +3170,18 @@ class IssuesControllerTest < Redmine::ControllerTest
|
||||
end
|
||||
end
|
||||
|
||||
def test_get_new_global_should_show_all_projects
|
||||
@request.session[:user_id] = 1
|
||||
get :new
|
||||
|
||||
assert_response :success
|
||||
|
||||
assert_select 'select[name=?]', 'issue[project_id]' do
|
||||
assert_select 'option[value=?]', '1'
|
||||
assert_select 'option[value=?]', '2'
|
||||
end
|
||||
end
|
||||
|
||||
def test_get_new_should_show_project_selector_for_project_with_subprojects
|
||||
@request.session[:user_id] = 2
|
||||
get(
|
||||
|
||||
Reference in New Issue
Block a user