From 38e789a4f5fa705ee4f92436101640cea0ecc3b6 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Sat, 15 Aug 2020 09:22:08 +1000 Subject: [PATCH] dev/core#1952 Remove uncessary component checking when exporting all activities --- CRM/Activity/Form/Task.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/CRM/Activity/Form/Task.php b/CRM/Activity/Form/Task.php index c169648768..462499c38f 100644 --- a/CRM/Activity/Form/Task.php +++ b/CRM/Activity/Form/Task.php @@ -70,16 +70,6 @@ class CRM_Activity_Form_Task extends CRM_Core_Form_Task { // CRM-12675 $activityClause = NULL; - $components = CRM_Core_Component::getNames(); - $componentClause = []; - foreach ($components as $componentID => $componentName) { - if ($componentName != 'CiviCase' && !CRM_Core_Permission::check("access $componentName")) { - $componentClause[] = " (activity_type.component_id IS NULL OR activity_type.component_id <> {$componentID}) "; - } - } - if (!empty($componentClause)) { - $activityClause = implode(' AND ', $componentClause); - } $result = $query->searchQuery(0, 0, NULL, FALSE, FALSE, FALSE, FALSE, FALSE, $activityClause); while ($result->fetch()) { -- 2.25.1