// 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;
}