More compatibility with autocomplete_users

This commit is contained in:
Alexander Meindl 2018-11-28 19:19:07 +01:00
parent ad1165256a
commit f3df349507
3 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ Changelog
++++++
- CSS fix for project macro
- More compatibility for autocomplete_users with other plugins (like redmine_contacts_helpdesk)
- Add Spanish translation, thanks to @dktcoding!
2.0.15

View File

@ -86,7 +86,7 @@ module AdditionalsQueriesHelper
scope = scope.order(last_login_on: :desc)
.limit(params[:limit] || Additionals::SELECT2_INIT_ENTRIES)
@users = scope.to_a.sort! { |x, y| x.name <=> y.name }
render layout: false, partial: 'auto_completes/users'
render layout: false, partial: 'auto_completes/additionals_users'
end
def additionals_query_to_xlsx(items, query, options = {})