Transfer: Do not reuse identical contacts

This commit is contained in:
Karl Erik Õunapuu 2020-08-04 16:10:58 +03:00
parent 8d3fc07754
commit 9ce85e155f

View file

@ -7,8 +7,6 @@ module Concerns::Contact::Transferable
end end
def transfer(new_registrar) def transfer(new_registrar)
return identical(new_registrar) if identical(new_registrar)
new_contact = self.dup new_contact = self.dup
new_contact.registrar = new_registrar new_contact.registrar = new_registrar
new_contact.original = self new_contact.original = self