//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'],