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)
committerEileen McNaughton <eileen@fuzion.co.nz>
Tue, 10 Mar 2015 05:28:06 +0000 (18:28 +1300)
CRM/Core/BAO/Domain.php

index 9cdb9a0ba02727fb64af59e50dffd8e401022955..d85c6c734f8a30359946092e17ed0e9fd407a7ba 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;
   }