X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FEvent%2FForm%2FParticipant.php;h=f220463b44333269abd4b379f9b79def29f5ebb9;hb=b15c60e15126832a4ac00df039a012f81c01dd97;hp=fa92fce1f7c3745e38c65f2913700c0e5824651a;hpb=960327c9fbbb2dc52f8f67a1bf94edc40281c1f0;p=civicrm-core.git diff --git a/CRM/Event/Form/Participant.php b/CRM/Event/Form/Participant.php index fa92fce1f7..f220463b44 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -645,8 +645,8 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment if ($this->_mode) { // exclude events which are not monetary when credit card registration is used $eventFieldParams['api']['params']['is_monetary'] = 1; - $this->add('select', 'payment_processor_id', ts('Payment Processor'), $this->_processors, TRUE); } + $this->addPaymentProcessorSelect(TRUE, FALSE, FALSE); $element = $this->addEntityRef('event_id', ts('Event'), $eventFieldParams, TRUE); @@ -1532,7 +1532,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment $this->assign('module', 'Event Registration'); //use of the message template below requires variables in different format $event = $events = array(); - $returnProperties = array('fee_label', 'start_date', 'end_date', 'is_show_location', 'title'); + $returnProperties = array('event_type_id', 'fee_label', 'start_date', 'end_date', 'is_show_location', 'title'); //get all event details. CRM_Core_DAO::commonRetrieveAll('CRM_Event_DAO_Event', 'id', $params['event_id'], $events, $returnProperties);