From: Bradley Taylor Date: Sat, 2 Dec 2023 14:25:16 +0000 (+0000) Subject: [REF][PHP8.2] Declare properties in CRM_Activity_Page_Tab X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0a64e6fffd229b1806deb77059c59243cf1aa7b4;p=civicrm-core.git [REF][PHP8.2] Declare properties in CRM_Activity_Page_Tab --- 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);