Skip to content

Commit

Permalink
Merge pull request #18149 from seamuslee001/dev_core_1952
Browse files Browse the repository at this point in the history
dev/core#1952 Remove uncessary component checking when exporting all …
  • Loading branch information
eileenmcnaughton authored Aug 15, 2020
2 parents 0481af7 + 9157e8b commit aaae615
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions CRM/Activity/Form/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,6 @@ public static function preProcessCommon(&$form) {
// 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()) {
Expand Down

0 comments on commit aaae615

Please sign in to comment.