Preserve participant status on transfer
authorlarssandergreen <lars@wildsight.ca>
Tue, 9 May 2023 20:40:52 +0000 (14:40 -0600)
committerlarssandergreen <lars@wildsight.ca>
Tue, 9 May 2023 20:40:52 +0000 (14:40 -0600)
CRM/Event/Form/SelfSvcTransfer.php

index 4f22bfe0eaa9164db77318b38b137194e28bfefd..dde9d2f367d092216ae329622f175ffc779c3366 100644 (file)
@@ -475,7 +475,6 @@ class CRM_Event_Form_SelfSvcTransfer extends CRM_Core_Form {
     ])['values'];
     unset($toParticipantValues['id']);
     $toParticipantValues['contact_id'] = $toContactID;
-    $toParticipantValues['status_id'] = CRM_Core_PseudoConstant::getKey('CRM_Event_BAO_Participant', 'status_id', 'Registered');
     $toParticipantValues['register_date'] = date("Y-m-d");
     //first create the new participant row -don't set registered_by yet or email won't be sent
     $participant = CRM_Event_BAO_Participant::create($toParticipantValues);