From 6c5282cb332ad0c6814a6c238c0a8f04a61c7303 Mon Sep 17 00:00:00 2001 From: Justin Freeman Date: Fri, 24 Sep 2021 15:46:16 +1000 Subject: [PATCH] CIVICRM-1563 Find Activities Search, the default search option of "With" criteria excludes Activities by default and confuses end users when 0 results are returned --- CRM/Activity/BAO/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Activity/BAO/Query.php b/CRM/Activity/BAO/Query.php index 0aa2df666a..47505d307a 100644 --- a/CRM/Activity/BAO/Query.php +++ b/CRM/Activity/BAO/Query.php @@ -450,7 +450,7 @@ class CRM_Activity_BAO_Query { 1 => ts('Added by'), ]; $form->addRadio('activity_role', NULL, $activityRoles, ['allowClear' => TRUE]); - $form->setDefaults(['activity_role' => 3]); + $activityStatus = CRM_Core_PseudoConstant::get('CRM_Activity_DAO_Activity', 'status_id', [ 'flip' => 1, 'labelColumn' => 'name', -- 2.25.1