Story#109623634 - after contact transferring it should be linked and ok

This commit is contained in:
Vladimir Krylov 2015-12-18 15:48:00 +02:00
parent 9027f5007c
commit e4c00e6bce
2 changed files with 7 additions and 1 deletions

View file

@ -57,6 +57,11 @@ class Contact < ActiveRecord::Base
before_save :manage_statuses before_save :manage_statuses
def manage_statuses def manage_statuses
if domain_transfer # very ugly but need better workflow
self.statuses = [OK, LINKED]
return
end
manage_linked manage_linked
manage_ok manage_ok
end end
@ -78,6 +83,7 @@ class Contact < ActiveRecord::Base
] ]
attr_accessor :deliver_emails attr_accessor :deliver_emails
attr_accessor :domain_transfer # hack but solves problem faster
# #
# STATUSES # STATUSES

View file

@ -622,7 +622,7 @@ class Epp::Domain < Domain
oc.registrar_id = registrar_id oc.registrar_id = registrar_id
oc.copy_from_id = c.id oc.copy_from_id = c.id
oc.prefix_code oc.prefix_code
oc.domains_present = true oc.domain_transfer = true
oc.save!(validate: false) oc.save!(validate: false)
oc oc
end end