mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 14:26:04 +01:00
Add "<< me >>" option to user format issue custom fields (#31444).
Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@18288 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -2883,7 +2883,7 @@ class IssuesControllerTest < Redmine::ControllerTest
|
||||
assert_response :success
|
||||
|
||||
assert_select 'select[name=?][multiple=multiple]', "issue[custom_field_values][#{field.id}][]" do
|
||||
assert_select 'option', Project.find(1).users.count
|
||||
assert_select 'option', Project.find(1).users.count + 1 # users + 'me'
|
||||
assert_select 'option[value="2"]', :text => 'John Smith'
|
||||
end
|
||||
assert_select 'input[name=?][type=hidden][value=?]', "issue[custom_field_values][#{field.id}][]", ''
|
||||
@@ -5673,7 +5673,7 @@ class IssuesControllerTest < Redmine::ControllerTest
|
||||
assert_response :success
|
||||
|
||||
assert_select 'select.user_cf[name=?]', "issue[custom_field_values][#{field.id}]" do
|
||||
assert_select 'option', Project.find(1).users.count + 2 # "no change" + "none" options
|
||||
assert_select 'option', Project.find(1).users.count + 3 # "no change" + "none" + "me" options
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user