[REF][PHP8.2] Declare properties in CRM_Activity_Page_Tab
authorBradley Taylor <hello@brad-taylor.co.uk>
Sat, 2 Dec 2023 14:25:16 +0000 (14:25 +0000)
committerBradley Taylor <hello@brad-taylor.co.uk>
Sat, 2 Dec 2023 14:25:16 +0000 (14:25 +0000)
CRM/Activity/Page/Tab.php

index bca1f8abbe222158ac8da45fa5b7a2e3cde5932b..14f10d251f7ecfc0aeab4c7356ad81a874335a8b 100644 (file)
  */
 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);