mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
Fixed contact#info not returning value on failure
This commit is contained in:
parent
2220846b9f
commit
03486c107c
2 changed files with 3 additions and 1 deletions
|
@ -22,6 +22,7 @@ module Epp::ContactsHelper
|
|||
end
|
||||
|
||||
def delete_contact
|
||||
#no deleting, implement PaperTrail or something similar.
|
||||
ph = params_hash['epp']['command']['delete']['delete']
|
||||
|
||||
@contact = Contact.where(code: ph[:id]).first
|
||||
|
@ -62,7 +63,7 @@ module Epp::ContactsHelper
|
|||
render 'epp/error'
|
||||
end
|
||||
rescue NoMethodError => e
|
||||
epp_errors << { code: '2303', msg: t('errors.messages.epp_obj_does_not_exist') }
|
||||
epp_errors << { code: '2303', msg: t('errors.messages.epp_obj_does_not_exist'), value: { obj: 'id', val: ph[:id] } }
|
||||
render 'epp/error'
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue