mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 01:47:18 +02:00
Story#112601637 - admin contacts has filter to get only ident_country_code
This commit is contained in:
parent
2c059f9176
commit
58e383bd25
2 changed files with 8 additions and 1 deletions
|
@ -20,6 +20,8 @@ class Admin::ContactsController < AdminController
|
|||
else
|
||||
contacts = Contact.includes(:registrar)
|
||||
end
|
||||
contacts = contacts.where("ident_country_code is null or ident_country_code=''") if params[:only_no_country_code].eql?('1')
|
||||
|
||||
|
||||
normalize_search_parameters do
|
||||
@q = contacts.search(search_params)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue