Fix authorization failed on self-service participant transfer
authorlarssandergreen <lars@wildsight.ca>
Tue, 9 May 2023 20:57:29 +0000 (14:57 -0600)
committerlarssandergreen <lars@wildsight.ca>
Tue, 9 May 2023 20:57:29 +0000 (14:57 -0600)
CRM/Event/Form/SelfSvcTransfer.php

index 4f22bfe0eaa9164db77318b38b137194e28bfefd..2ac42a6eb0e7152b96121ad530ea81f1db4e38db 100644 (file)
@@ -465,7 +465,7 @@ class CRM_Event_Form_SelfSvcTransfer extends CRM_Core_Form {
    * @throws \CRM_Core_Exception
    */
   public function transferParticipantRegistration($toContactID, $fromParticipantID) {
-    $toParticipantValues = \Civi\Api4\Participant::get()
+    $toParticipantValues = \Civi\Api4\Participant::get(FALSE)
       ->addWhere('id', '=', $fromParticipantID)
       ->execute()
       ->first();