X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FEvent%2FForm%2FSelfSvcTransfer.php;h=a0e629e0aaf6e82ae09a15e128aa27debe96d811;hb=1316177ad53e1616fc54791a4565c2aeb16b0836;hp=c3af950956bf15b805d848a6eccd8400d01c3374;hpb=5caa4dab191ace09ee6fac30a11609ec6d4c7ddf;p=civicrm-core.git diff --git a/CRM/Event/Form/SelfSvcTransfer.php b/CRM/Event/Form/SelfSvcTransfer.php index c3af950956..a0e629e0aa 100644 --- a/CRM/Event/Form/SelfSvcTransfer.php +++ b/CRM/Event/Form/SelfSvcTransfer.php @@ -365,7 +365,11 @@ class CRM_Event_Form_SelfSvcTransfer extends CRM_Core_Form { } $value_to['contact_id'] = $contact_id; $value_to['event_id'] = $this->_event_id; - $value_to['status_id'] = 1; + $value_to['status_id'] = CRM_Core_PseudoConstant::getKey( + 'CRM_Event_BAO_Participant', + 'status_id', + 'Registered' + ); $value_to['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($value_to);