Always define participant ID
authorEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 14 Sep 2023 22:51:00 +0000 (10:51 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 14 Sep 2023 22:51:00 +0000 (10:51 +1200)
CRM/Event/Form/SelfSvcTransfer.php

index c8abe617a19d1be570762cb791f31765a2d3097e..50e43054e90ace5906e89fc7adac114c7179f494 100644 (file)
@@ -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);