Remove contact's address on domain transfer unless address_processing is enabled

#251
This commit is contained in:
Artur Beljajev 2016-12-14 05:49:13 +02:00
parent a63e2b9dd2
commit 68c3f0c338
3 changed files with 21 additions and 0 deletions

View file

@ -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