Commit c7d65c94 authored by jaapjansma's avatar jaapjansma

Changed naming of custom fields for GetParticipant action

parent 4ae64d53
......@@ -128,7 +128,7 @@ class GetParticipant extends AbstractAction {
try {
$participant = civicrm_api3('Participant', 'getsingle', array('id' => $participant_id));
foreach($this->getOutputSpecification() as $spec) {
if (isset($participant[$spec->getName()])) {
if (isset($participant[$spec->getApiFieldName()])) {
$output->setParameter($spec->getName(), $participant[$spec->getApiFieldName()]);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment