X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FForm.php;h=d42f6246f7dce4c3938593103aba0b0af231db43;hb=fd96067165316831b50e48972059930ad1785444;hp=5e6f2c78d347653cad1174b3d155787ec0a18062;hpb=1f40c4b628949e15034c09ba70c789a2d237bfe9;p=civicrm-core.git diff --git a/CRM/Core/Form.php b/CRM/Core/Form.php index 5e6f2c78d3..d42f6246f7 100644 --- a/CRM/Core/Form.php +++ b/CRM/Core/Form.php @@ -1353,8 +1353,14 @@ class CRM_Core_Form extends HTML_QuickForm_Page { // event form stores as an indexed array, contribution form not so much... $tempID = $this->_params[0]['select_contact_id']; } + // force to ignore the authenticated user - if ($tempID === '0') { + if ($tempID === '0' || $tempID === 0) { + // we set the cid on the form so that this will be retained for the Confirm page + // in the multi-page form & prevent us returning the $userID when this is called + // from that page + // we don't really need to set it when $tempID is set because the params have that stored + $this->set('cid', 0); return $tempID; }