Check whether registrant element exists before determining registrant change

This commit is contained in:
Karl Erik Õunapuu 2020-05-21 13:54:34 +03:00
parent 178d199020
commit f25b7a3b7f
4 changed files with 11 additions and 6 deletions

View file

@ -106,7 +106,6 @@ module Epp
updated = @domain.update(params[:parsed_frame], current_user)
(handle_errors(@domain) && return) unless updated
Dispute.close_by_domain(@domain.name) if @domain.disputed?
pending = @domain.epp_pending_update.present?
render_epp_response "/epp/domains/success#{'_pending' if pending}"
end