From: eileenmcnaugton Date: Mon, 3 Aug 2015 01:52:48 +0000 (+1200) Subject: CRM-16952 wrap getContactID function X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8d3880473cf2a86fa3c36c40c8ea1ce08671642d;p=civicrm-core.git CRM-16952 wrap getContactID function --- diff --git a/CRM/Core/Form.php b/CRM/Core/Form.php index 550f0da54b..f06c10f8fc 100644 --- a/CRM/Core/Form.php +++ b/CRM/Core/Form.php @@ -1861,7 +1861,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page { * * @return NULL|int */ - public function getContactID() { + protected function setContactID() { $tempID = CRM_Utils_Request::retrieve('cid', 'Positive', $this); if (isset($this->_params) && isset($this->_params['select_contact_id'])) { $tempID = $this->_params['select_contact_id']; @@ -1904,6 +1904,10 @@ class CRM_Core_Form extends HTML_QuickForm_Page { return is_numeric($userID) ? $userID : NULL; } + public function getContactID() { + return $this->setContactID(); + } + /** * Get the contact id of the logged in user. */