CRM-17844 -- Registering 'as someone else' still affects logged-in user
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Fri, 22 Jan 2016 10:38:26 +0000 (16:08 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Fri, 22 Jan 2016 10:38:26 +0000 (16:08 +0530)
CRM/Core/Form.php

index c53091d56b224ccd472ad87db00abfdf7e8fe305..87542685e42b2c625babcf2452b68bc7d103da07 100644 (file)
@@ -1918,7 +1918,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
    */
   protected function setContactID() {
     $tempID = CRM_Utils_Request::retrieve('cid', 'Positive', $this);
-    if (isset($this->_params) && isset($this->_params['select_contact_id'])) {
+    if (isset($this->_params) && !empty($this->_params['select_contact_id'])) {
       $tempID = $this->_params['select_contact_id'];
     }
     if (isset($this->_params, $this->_params[0]) && !empty($this->_params[0]['select_contact_id'])) {