mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-15 20:54:03 +00:00
Fix selectized users on booth/proposal forms
This commit is contained in:
parent
7e5175536e
commit
0ff503bc1b
6 changed files with 57 additions and 71 deletions
|
|
@ -26,7 +26,7 @@ class UsersController < ApplicationController
|
|||
def search
|
||||
respond_to do |format|
|
||||
format.json do
|
||||
render json: { users: User.where('username like ?', "%#{params[:query]}%").select(:username, :id) }
|
||||
render json: { users: User.active.where('username like ?', "%#{params[:query]}%").select(:username, :id) }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue