CRM-16082 move responsibility for ensuring a domain group exists out of core
authorEileen <eileen@fuzion.co.nz>
Tue, 10 Mar 2015 05:23:46 +0000 (01:23 -0400)
committereileenmcnaugton <eileen@fuzion.co.nz>
Mon, 17 Aug 2015 22:55:30 +0000 (10:55 +1200)
CRM/Core/BAO/Domain.php

index e86a7f43a6747de9a86e1df75d68bf87c428a204..11d58a328d11d2fe5ffd080b86bdc4590c249192 100644 (file)
@@ -271,15 +271,6 @@ class CRM_Core_BAO_Domain extends CRM_Core_DAO_Domain {
       $groupID = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Group',
         $title, 'id', 'title', TRUE
       );
-      if (empty($groupID) && !empty($title)) {
-        $groupParams = array(
-          'title' => $title,
-          'is_active' => 1,
-          'no_parent' => 1,
-        );
-        $group = CRM_Contact_BAO_Group::create($groupParams);
-        $groupID = $group->id;
-      }
     }
     return $groupID ? $groupID : FALSE;
   }