Fix tech contact / bulk transfer notifications

This commit is contained in:
Karl Erik Õunapuu 2020-12-22 19:05:06 +02:00
parent 903044263a
commit 8fffe6e736
No known key found for this signature in database
GPG key ID: C9DD647298A34764
5 changed files with 17 additions and 14 deletions

View file

@ -49,10 +49,10 @@ class Registrar
notices << "#{t('.skipped_domains')}: #{parsed_response[:data][:skipped_domains].join(', ')}"
end
flash[:notice] = notices
flash[:notice] = notices.join(', ')
redirect_to registrar_domains_url
else
@error = parsed_response[:message]
@error = response.code == '404' ? 'Contact(s) not found' : parsed_response[:message]
render file: 'registrar/bulk_change/new', locals: { active_tab: :technical_contact }
end
end