From 97b002d7f27d3d6acfd3075061fe9c5d469f0d2a Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 25 May 2015 21:57:39 -0400 Subject: [PATCH] CRM-16557 - Fix contact dashboard to display assigned activities --- CRM/Activity/Form/Search.php | 4 ++-- CRM/Activity/Page/UserDashboard.php | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CRM/Activity/Form/Search.php b/CRM/Activity/Form/Search.php index 77c78c0708..80324ef27a 100644 --- a/CRM/Activity/Form/Search.php +++ b/CRM/Activity/Form/Search.php @@ -297,8 +297,8 @@ class CRM_Activity_Form_Search extends CRM_Core_Form_Search { $status = CRM_Utils_Request::retrieve('status', 'String', $this); if ($status) { - $this->_formValues['activity_status'] = $status; - $this->_defaults['activity_status'] = $status; + $this->_formValues['activity_status_id'] = $status; + $this->_defaults['activity_status_id'] = $status; } $survey = CRM_Utils_Request::retrieve('survey', 'Positive', CRM_Core_DAO::$_nullObject); diff --git a/CRM/Activity/Page/UserDashboard.php b/CRM/Activity/Page/UserDashboard.php index 26299d5038..a6bada4586 100644 --- a/CRM/Activity/Page/UserDashboard.php +++ b/CRM/Activity/Page/UserDashboard.php @@ -55,7 +55,8 @@ class CRM_Activity_Page_UserDashboard extends CRM_Contact_Page_View_UserDashBoar $controller->reset(); $controller->set('context', 'user'); $controller->set('cid', $this->_contactId); - $controller->set('status', array(1 => 'on', 7 => 'on')); + // Limit to status "Scheduled" and "Available" + $controller->set('status', array('IN' => array(1, 7))); $controller->set('activity_role', 2); $controller->set('force', 1); $controller->process(); -- 2.25.1