mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
105842700-contact_search_fix
This commit is contained in:
parent
be8aa474f8
commit
a2f390aa0f
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
class Registrant::ContactsController < RegistrantController
|
||||
|
||||
def show
|
||||
@contact = contacts.find(params[:id])
|
||||
@contact = Contact.where(id: contacts).find(params[:id])
|
||||
authorize! :read, @contact
|
||||
end
|
||||
|
||||
|
@ -12,7 +12,7 @@ class Registrant::ContactsController < RegistrantController
|
|||
rescue Soap::Arireg::NotAvailableError => error
|
||||
flash[:notice] = I18n.t(error.json[:message])
|
||||
Rails.logger.fatal("[EXCEPTION] #{error.to_s}")
|
||||
Contact.none
|
||||
[]
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue