From 0a64e6fffd229b1806deb77059c59243cf1aa7b4 Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Sat, 2 Dec 2023 14:25:16 +0000 Subject: [PATCH] [REF][PHP8.2] Declare properties in CRM_Activity_Page_Tab --- CRM/Activity/Page/Tab.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/CRM/Activity/Page/Tab.php b/CRM/Activity/Page/Tab.php index bca1f8abbe..14f10d251f 100644 --- a/CRM/Activity/Page/Tab.php +++ b/CRM/Activity/Page/Tab.php @@ -20,6 +20,20 @@ */ class CRM_Activity_Page_Tab extends CRM_Core_Page { + /** + * Case ID, passed in via query param. + * + * @var int + */ + public $_caseId; + + /** + * Contact ID, passed in via query param + * + * @var int + */ + public $_contactId; + /** * Browse all activities for a particular contact. */ @@ -111,7 +125,7 @@ class CRM_Activity_Page_Tab extends CRM_Core_Page { $this->assign('contactID', $this->_contactId); // check logged in url permission - CRM_Contact_Page_View::checkUserPermission($this); + CRM_Contact_Page_View::checkUserPermission($this, $this->_contactId); $this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'browse'); $this->assign('action', $this->_action); -- 2.25.1