diff --git a/CRM/Core/Page/EntityPageTrait.php b/CRM/Core/Page/EntityPageTrait.php index f5ff7867ded..2d6b1228a96 100644 --- a/CRM/Core/Page/EntityPageTrait.php +++ b/CRM/Core/Page/EntityPageTrait.php @@ -145,7 +145,8 @@ public function preProcessQuickEntityPage() { $this->assign('action', $this->getAction()); $this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this); - $this->setContactId(CRM_Utils_Request::retrieve('cid', 'Positive', $this, TRUE)); + $this->setContactId(CRM_Utils_Request::retrieve('cid', 'Positive', $this, FALSE, CRM_Core_Session::getLoggedInContactID())); + $this->assign('contactId', $this->getContactId()); $this->_context = CRM_Utils_Request::retrieve('context', 'Alphanumeric', $this, FALSE, $this->getDefaultContext());