Fix bulk tech contact change notifications

This commit is contained in:
Karl Erik Õunapuu 2020-12-22 17:58:18 +02:00
parent 1d3c70ae34
commit 903044263a
No known key found for this signature in database
GPG key ID: C9DD647298A34764

View file

@ -43,16 +43,16 @@ class Registrar
if response.code == '200' if response.code == '200'
notices = [t('.replaced')] notices = [t('.replaced')]
notices << "#{t('.affected_domains')}: #{parsed_response[:affected_domains].join(', ')}" notices << "#{t('.affected_domains')}: #{parsed_response[:data][:affected_domains].join(', ')}"
if parsed_response[:skipped_domains] if parsed_response[:data][:skipped_domains]
notices << "#{t('.skipped_domains')}: #{parsed_response[:skipped_domains].join(', ')}" notices << "#{t('.skipped_domains')}: #{parsed_response[:data][:skipped_domains].join(', ')}"
end end
flash[:notice] = notices flash[:notice] = notices
redirect_to registrar_domains_url redirect_to registrar_domains_url
else else
@error = parsed_response[:error] @error = parsed_response[:message]
render file: 'registrar/bulk_change/new', locals: { active_tab: :technical_contact } render file: 'registrar/bulk_change/new', locals: { active_tab: :technical_contact }
end end
end end