From 3cb8f9b20059f58478c1317e01abac24cc4cbabc Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 6 Aug 2014 13:49:23 +0100 Subject: [PATCH] CRM-15028 - Fix participant import field labels --- CRM/Event/BAO/Participant.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/CRM/Event/BAO/Participant.php b/CRM/Event/BAO/Participant.php index 1348cb0bc5..bc959413a0 100644 --- a/CRM/Event/BAO/Participant.php +++ b/CRM/Event/BAO/Participant.php @@ -645,28 +645,34 @@ GROUP BY participant.event_id $note = array( 'participant_note' => array( - 'title' => 'Participant Note', + 'title' => ts('Participant Note'), 'name' => 'participant_note', 'headerPattern' => '/(participant.)?note$/i', )); + // Split status and status id into 2 fields + // Fixme: it would be better to leave as 1 field and intelligently handle both during import $participantStatus = array( 'participant_status' => array( - 'title' => 'Participant Status', + 'title' => ts('Participant Status'), 'name' => 'participant_status', 'data_type' => CRM_Utils_Type::T_STRING, )); + $tmpFields['participant_status_id']['title'] = ts('Participant Status Id'); + // Split role and role id into 2 fields + // Fixme: it would be better to leave as 1 field and intelligently handle both during import $participantRole = array( 'participant_role' => array( - 'title' => 'Participant Role', + 'title' => ts('Participant Role'), 'name' => 'participant_role', 'data_type' => CRM_Utils_Type::T_STRING, )); + $tmpFields['participant_role_id']['title'] = ts('Participant Role Id'); $eventType = array( 'event_type' => array( - 'title' => 'Event Type', + 'title' => ts('Event Type'), 'name' => 'event_type', 'data_type' => CRM_Utils_Type::T_STRING, )); -- 2.25.1