Story #105846070 - include results from business registry if found

This commit is contained in:
Matt Farnsworth 2015-12-14 13:50:11 +02:00
parent e266c22741
commit 48ab1c7c7e

View file

@ -40,7 +40,13 @@ class Registrant::DomainsController < RegistrantController
end
def domains
current_user.domains
ident_cc, ident = @current_user.registrant_ident.split '-'
begin
BusinessRegistryCache.fetch_associated_domains ident, ident_cc
rescue Soap::Arireg::NotAvailableError => error
flash[:notice] = I18n.t(error.message[:message])
current_user.domains
end
end
def normalize_search_parameters