From: Eileen McNaughton Date: Thu, 14 Sep 2023 22:51:00 +0000 (+1200) Subject: Always define participant ID X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=bcd4a6b006540fef530489d352662be7408ae071;p=civicrm-core.git Always define participant ID --- diff --git a/CRM/Event/Form/SelfSvcTransfer.php b/CRM/Event/Form/SelfSvcTransfer.php index c8abe617a1..50e43054e9 100644 --- a/CRM/Event/Form/SelfSvcTransfer.php +++ b/CRM/Event/Form/SelfSvcTransfer.php @@ -129,9 +129,7 @@ class CRM_Event_Form_SelfSvcTransfer extends CRM_Core_Form { CRM_Core_Error::statusBounce(ts('You do not have sufficient permission to transfer/cancel this participant.'), $url); } $this->assign('action', $this->_action); - if ($this->_from_participant_id) { - $this->assign('participantId', $this->_from_participant_id); - } + $this->assign('participantId', $this->_from_participant_id); $details = CRM_Event_BAO_Participant::participantDetails($this->_from_participant_id); $selfServiceDetails = CRM_Event_BAO_Participant::getSelfServiceEligibility($this->_from_participant_id, $url, $this->isBackoffice);