mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +02:00
Remove contact's address on domain transfer unless address_processing is enabled
#251
This commit is contained in:
parent
a63e2b9dd2
commit
68c3f0c338
3 changed files with 21 additions and 0 deletions
|
@ -648,6 +648,7 @@ class Epp::Domain < Domain
|
|||
oc.copy_from_id = c.id
|
||||
oc.generate_code
|
||||
oc.domain_transfer = true
|
||||
oc.remove_address unless Contact.address_processing?
|
||||
oc.save!(validate: false)
|
||||
oc
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue