diff options
-rw-r--r-- | app/views/issues/bulk_edit.html.erb | 4 | ||||
-rw-r--r-- | test/system/inline_autocomplete_test.rb | 15 |
2 files changed, 19 insertions, 0 deletions
diff --git a/app/views/issues/bulk_edit.html.erb b/app/views/issues/bulk_edit.html.erb index a49617aab..4fe457b32 100644 --- a/app/views/issues/bulk_edit.html.erb +++ b/app/views/issues/bulk_edit.html.erb @@ -226,6 +226,10 @@ %> <%= wikitoolbar_for 'notes' %> +<% if User.current.allowed_to?(:add_issue_watchers, nil, global: true)%> + <%= update_data_sources_for_auto_complete({users: watchers_autocomplete_for_mention_path(q: '', object_type: 'issue', object_id: @issues.map(&:id) )}) %> +<% end %> + <% if @safe_attributes.include?('private_notes') %> <label class="inline"> <%= check_box_tag 'issue[private_notes]', 1, false %> diff --git a/test/system/inline_autocomplete_test.rb b/test/system/inline_autocomplete_test.rb index 26a89b85d..70c462a4d 100644 --- a/test/system/inline_autocomplete_test.rb +++ b/test/system/inline_autocomplete_test.rb @@ -186,4 +186,19 @@ class InlineAutocompleteSystemTest < ApplicationSystemTestCase end end + + def test_inline_autocomplete_for_users_on_issues_bulk_edit_show_autocomplete + log_user('jsmith', 'jsmith') + visit '/issues/bulk_edit?ids[]=1&ids[]=2' + + find('#notes').click + fill_in 'notes', :with => '@lopper' + + within('.tribute-container') do + assert page.has_text? 'Dave Lopper' + first('li').click + end + + assert_equal '@dlopper ', find('#notes').value + end end |