mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 07:04:47 +02:00
Add epp errors support to bulk renew
This commit is contained in:
parent
0f812d0b15
commit
79351d50d9
8 changed files with 42 additions and 22 deletions
|
@ -6,7 +6,9 @@ module Repp
|
|||
super
|
||||
|
||||
unless @new_contact.identical_to?(@current_contact)
|
||||
@epp_errors << { code: 2304, msg: 'Admin contacts must be identical' }
|
||||
@epp_errors.add(:epp_errors,
|
||||
msg: 'Admin contacts must be identical',
|
||||
code: '2304')
|
||||
end
|
||||
|
||||
return handle_errors if @epp_errors.any?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue