diff --git a/app/controllers/user_my_modules_controller.rb b/app/controllers/user_my_modules_controller.rb index 8e9e2f33b..1e87153a9 100644 --- a/app/controllers/user_my_modules_controller.rb +++ b/app/controllers/user_my_modules_controller.rb @@ -91,7 +91,8 @@ class UserMyModulesController < ApplicationController users = @my_module.users .joins("LEFT OUTER JOIN user_my_modules ON user_my_modules.user_id = users.id "\ "AND user_my_modules.my_module_id = #{@my_module.id}") - .search(false, params[:query]) + .where('trim_html_tags(users.full_name) ILIKE ?', + "%#{ActiveRecord::Base.sanitize_sql_like(params[:query])}%") .select('users.*', 'user_my_modules.id as user_my_module_id') .select('CASE WHEN user_my_modules.id IS NOT NULL THEN true ELSE false END as designated') .order('designated DESC', :full_name) diff --git a/app/javascript/vue/my_modules/renderers/designated_users.vue b/app/javascript/vue/my_modules/renderers/designated_users.vue index 5a22ac4ed..5319536d6 100644 --- a/app/javascript/vue/my_modules/renderers/designated_users.vue +++ b/app/javascript/vue/my_modules/renderers/designated_users.vue @@ -1,6 +1,6 @@