In 2020 this commit
https://github.com/civicrm/civicrm-core/commit/
10f289cab793ff8292560eba7d780ec8295a5862
removed the call to get the participant list from the search object
and instead replaced it with a call to get it from the v4 api.
In the process confirmEventUrl stopped being assinged to the template
and no-one noticed. This removes the traces of it
$row['campaign'] = $allCampaigns[$result->participant_campaign_id] ?? NULL;
$row['campaign_id'] = $result->participant_campaign_id;
- // gross hack to show extra information for pending status
- $statusClass = NULL;
- if ((isset($row['participant_status_id'])) &&
- ($statusId = array_search($row['participant_status_id'], $statusTypes))
- ) {
- $statusClass = $statusClasses[$statusId];
- }
-
- $row['showConfirmUrl'] = $statusClass == 'Pending';
-
if (!empty($row['participant_is_test'])) {
$row['participant_status'] = CRM_Core_TestEntity::appendTestText($row['participant_status']);
}
{/if}
</td>
<td class="crm-participant-participant_status">{$row.participant_status}</td>
- <td class="crm-participant-showConfirmUrl">
- {if !empty($row.showConfirmUrl)}
- <a href="{crmURL p='civicrm/event/confirm' q="reset=1&participantId=`$row.participant_id`"}">{ts}Confirm Registration{/ts}</a>
- {/if}
- </td>
</tr>
{/foreach}
</table>