]> source.dussan.org Git - redmine.git/commitdiff
Enable user auto-complete in issues bulk edit (#37369).
authorMarius Balteanu <marius.balteanu@zitec.com>
Fri, 23 Sep 2022 05:58:19 +0000 (05:58 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Fri, 23 Sep 2022 05:58:19 +0000 (05:58 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@21834 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/bulk_edit.html.erb

index a49617aab82be314eadd0f8c72123e616a56bcb6..4fe457b32eb5f6561198d62c5f99f9e5c768ea81 100644 (file)
 %>
 <%= 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 %>