From 1e80672910270211a4fae26301e9a36f485447d5 Mon Sep 17 00:00:00 2001 From: Priit Tark Date: Tue, 31 Mar 2015 16:12:57 +0300 Subject: [PATCH] fixed attach default contacts when owner is missing --- app/models/epp/domain.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/epp/domain.rb b/app/models/epp/domain.rb index f7c9d8eb0..e70462efe 100644 --- a/app/models/epp/domain.rb +++ b/app/models/epp/domain.rb @@ -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