mirror of
https://github.com/internetee/registry.git
synced 2025-07-30 22:46:22 +02:00
REPP: Ditch _id from registrant / registrar attributes
This commit is contained in:
parent
83bfc493bb
commit
d6b266459b
5 changed files with 15 additions and 15 deletions
|
@ -66,16 +66,16 @@ module Actions
|
|||
end
|
||||
|
||||
def assign_registrant
|
||||
unless params[:registrant_id]
|
||||
unless params[:registrant]
|
||||
domain.add_epp_error('2306', nil, nil, %i[registrant cannot_be_missing])
|
||||
return
|
||||
end
|
||||
|
||||
regt = Registrant.find_by(code: params[:registrant_id])
|
||||
regt = Registrant.find_by(code: params[:registrant])
|
||||
if regt
|
||||
domain.registrant = regt
|
||||
else
|
||||
domain.add_epp_error('2303', 'registrant', params[:registrant_id], %i[registrant not_found])
|
||||
domain.add_epp_error('2303', 'registrant', params[:registrant], %i[registrant not_found])
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -207,7 +207,7 @@ module Actions
|
|||
end
|
||||
|
||||
def current_registrar
|
||||
Registrar.find(params[:registrar_id])
|
||||
Registrar.find(params[:registrar])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -49,7 +49,7 @@ module Actions
|
|||
|
||||
regt = Registrant.find_by(code: params[:registrant][:code])
|
||||
unless regt
|
||||
domain.add_epp_error('2303', 'registrant', params[:registrant_id], %i[registrant not_found])
|
||||
domain.add_epp_error('2303', 'registrant', params[:registrant], %i[registrant not_found])
|
||||
return
|
||||
end
|
||||
|
||||
|
@ -234,7 +234,7 @@ module Actions
|
|||
def ask_registrant_verification
|
||||
if verify_registrant_change? && !bypass_verify &&
|
||||
Setting.request_confirmation_on_registrant_change_enabled
|
||||
domain.registrant_verification_asked!(params, params[:registrar_id])
|
||||
domain.registrant_verification_asked!(params, params[:registrar])
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue