From: eileenmcnaugton Date: Sun, 7 Aug 2016 07:37:41 +0000 (+1200) Subject: CRM-19068 remove references to 'descendant groups for an org' X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e855e1359c875e54f1d4381f1b5c420688c4e379;p=civicrm-core.git CRM-19068 remove references to 'descendant groups for an org' A grep on this only finds it in the legacy version of the multisite extension --- diff --git a/CRM/Contact/BAO/Group.php b/CRM/Contact/BAO/Group.php index 444b11b8ca..adc3291d7d 100644 --- a/CRM/Contact/BAO/Group.php +++ b/CRM/Contact/BAO/Group.php @@ -107,11 +107,6 @@ class CRM_Contact_BAO_Group extends CRM_Contact_DAO_Group { $query = "DELETE FROM civicrm_acl_entity_role where entity_table = 'civicrm_group' AND entity_id = %1"; CRM_Core_DAO::executeQuery($query, $params); - if (Civi::settings()->get('is_enabled')) { - // clear any descendant groups cache if exists - CRM_Core_BAO_Cache::deleteGroup('descendant groups for an org'); - } - // delete from group table $group = new CRM_Contact_DAO_Group(); $group->id = $id; @@ -448,9 +443,6 @@ class CRM_Contact_BAO_Group extends CRM_Contact_DAO_Group { } } - // clear any descendant groups cache if exists - $finalGroups = CRM_Core_BAO_Cache::deleteGroup('descendant groups for an org'); - // this is always required, since we don't know when a // parent group is removed CRM_Contact_BAO_GroupNestingCache::update();