From 8d3880473cf2a86fa3c36c40c8ea1ce08671642d Mon Sep 17 00:00:00 2001 From: eileenmcnaugton Date: Mon, 3 Aug 2015 13:52:48 +1200 Subject: [PATCH] CRM-16952 wrap getContactID function --- CRM/Core/Form.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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. */ -- 2.25.1