private function buildRecurringContributionsArray($recurContributions) {
$liveRecurringContributionCount = 0;
foreach ($recurContributions as $recurId => $recurDetail) {
+ // API3 does not return "installments" if it is not set. But we need it set to avoid PHP notices on ContributionRecurSelector.tpl
+ $recurContributions[$recurId]['installments'] = $recurDetail['installments'] ?? NULL;
// Is recurring contribution active?
$recurContributions[$recurId]['is_active'] = !in_array(CRM_Contribute_PseudoConstant::contributionStatus($recurDetail['contribution_status_id'], 'name'), CRM_Contribute_BAO_ContributionRecur::getInactiveStatuses());
if ($recurContributions[$recurId]['is_active']) {
{if $row.amount_level}<br/>({$row.amount_level}){/if}
{if $row.contribution_recur_id && $row.is_template}
<br/>{ts}(Recurring Template){/ts}
- {elseif $row.contribution_recur_id }
+ {elseif $row.contribution_recur_id}
<br/>{ts}(Recurring){/ts}
{/if}
</td>