mirror of
https://github.com/internetee/registry.git
synced 2025-07-02 09:13:36 +02:00
110152326-distinct_added
This commit is contained in:
parent
f019bf5e0d
commit
df68b705ff
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ class Registrar::ContactsController < Registrar::DeppController # EPP controller
|
|||
|
||||
normalize_search_parameters do
|
||||
@q = contacts.search(search_params)
|
||||
@contacts = @q.result.page(params[:page])
|
||||
@contacts = @q.result(distinct: :true).page(params[:page])
|
||||
end
|
||||
|
||||
@contacts = @contacts.per(params[:results_per_page]) if params[:results_per_page].to_i > 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue