From 254bd1feba37f9ce168b641871a82f872e1fb83a Mon Sep 17 00:00:00 2001 From: "deb.monish" Date: Thu, 15 Jun 2017 14:26:05 +0530 Subject: [PATCH] revert changes to include child tag count in parent tag --- CRM/Admin/Page/AJAX.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/CRM/Admin/Page/AJAX.php b/CRM/Admin/Page/AJAX.php index 980fae3a2b..1aa2d5c0ad 100644 --- a/CRM/Admin/Page/AJAX.php +++ b/CRM/Admin/Page/AJAX.php @@ -321,11 +321,6 @@ class CRM_Admin_Page_AJAX { $style = "background-color: {$dao->color}; color: " . CRM_Utils_Color::getContrast($dao->color); } $hasChildTags = empty($childTagIDs[$dao->id]) ? FALSE : TRUE; - // get tag IDs includeing its child tags, later used to fetch usage count - $tagIDs = array($dao->id); - if ($hasChildTags) { - $tagIDs = array_merge($tagIDs, $childTagIDs[$dao->id]); - } $usedFor = (array) explode(',', $dao->used_for); $result[] = array( 'id' => $dao->id, @@ -348,7 +343,7 @@ class CRM_Admin_Page_AJAX { 'color' => $dao->color ? $dao->color : '#ffffff', 'usages' => civicrm_api3('EntityTag', 'getcount', array( 'entity_table' => array('IN' => $usedFor), - 'tag_id' => array('IN' => $tagIDs), + 'tag_id' => $dao->id, )), ), ); -- 2.25.1