fixed attach default contacts when owner is missing

This commit is contained in:
Priit Tark 2015-03-31 16:12:57 +03:00
parent c5860bde98
commit 1e80672910

View file

@ -68,6 +68,7 @@ class Epp::Domain < Domain
end
def attach_default_contacts
return if owner_contact.blank?
tech_contacts << owner_contact if tech_contacts.blank?
admin_contacts << owner_contact if admin_contacts.blank? && owner_contact.priv?
end