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:
Jean-Philippe Lang
2019-06-20 09:05:36 +00:00
parent 8e76585550
commit 28f37adcd3
4 changed files with 15 additions and 4 deletions

View File

@@ -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