Remove expire statuses on domain on renew #2622

This commit is contained in:
Martin Lensment 2015-06-10 13:57:35 +03:00
parent cd1f04f155
commit d554e12116
2 changed files with 30 additions and 0 deletions

View file

@ -437,6 +437,9 @@ class Epp::Domain < Domain
self.period = period
self.period_unit = unit
domain_statuses.where(value: DomainStatus::SERVER_HOLD).destroy_all
domain_statuses.where(value: DomainStatus::EXPIRED).destroy_all
save
end