From e46598666059f288c669f3335950179a4e32fa96 Mon Sep 17 00:00:00 2001 From: francescbassas Date: Wed, 3 May 2017 20:46:57 +0200 Subject: [PATCH] CRM-20518 Default participant status not set when status name not matches localized string 'Registered' --- CRM/Event/Form/Participant.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Event/Form/Participant.php b/CRM/Event/Form/Participant.php index 49b1c13bef..144122ab17 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -477,8 +477,8 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment //setting default register date if ($this->_action == CRM_Core_Action::ADD) { - $statuses = array_flip($this->_participantStatuses); - $defaults[$this->_id]['status_id'] = CRM_Utils_Array::value(ts('Registered'), $statuses); + $statuses = array_flip(CRM_Event_PseudoConstant::participantStatus()); + $defaults[$this->_id]['status_id'] = CRM_Utils_Array::value('Registered', $statuses); if (!empty($defaults[$this->_id]['event_id'])) { $contributionTypeId = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Event', $defaults[$this->_id]['event_id'], -- 2.25.1