'sort' => 'total_amount',
'direction' => CRM_Utils_Sort::DONTCARE,
'field_name' => 'total_amount',
+ 'type' => '',
],
];
if ($this->_includeSoftCredits) {
'sort' => 'contribution_soft_credit_amount',
'field_name' => 'contribution_soft_credit_amount',
'direction' => CRM_Utils_Sort::DONTCARE,
+ 'type' => '',
],
]
);
'sort' => 'financial_type',
'field_name' => 'financial_type',
'direction' => CRM_Utils_Sort::DONTCARE,
+ 'type' => '',
],
[
'name' => ts('Source'),
'sort' => 'contribution_source',
'field_name' => 'contribution_source',
'direction' => CRM_Utils_Sort::DONTCARE,
+ 'type' => '',
],
[
'name' => ts('Received'),
'sort' => 'contribution_status',
'field_name' => 'contribution_status',
'direction' => CRM_Utils_Sort::DONTCARE,
+ 'type' => '',
],
]
);
'sort' => 'product_name',
'field_name' => 'product_name',
'direction' => CRM_Utils_Sort::DONTCARE,
+ 'type' => '',
];
}
if (!$this->_single) {
[
'name' => ts('Name'),
'sort' => 'sort_name',
+ 'field_name' => '',
'direction' => CRM_Utils_Sort::DONTCARE,
+ 'type' => '',
],
];
}
'name' => ts('Soft Credit For'),
'sort' => 'contribution_soft_credit_name',
'direction' => CRM_Utils_Sort::DONTCARE,
+ 'field_name' => '',
],
[
'name' => ts('Soft Credit Type'),
'sort' => 'contribution_soft_credit_type',
'direction' => CRM_Utils_Sort::ASCENDING,
+ 'field_name' => '',
],
]
);
self::$_columnHeaders
= array_merge(
self::$_columnHeaders, [
- ['desc' => ts('Actions'), 'type' => 'actions'],
+ ['desc' => ts('Actions'), 'type' => 'actions', 'field_name' => ''],
]
);
foreach (array_keys(self::$_columnHeaders) as $index) {
{/if}
</td>
{foreach from=$columnHeaders item=column}
- {assign var='columnName' value=''}
- {if $column.field_name}
- {assign var='columnName' value=$column.field_name}
- {/if}
+ {assign var='columnName' value=$column.field_name}
{if !$columnName}{* if field_name has not been set skip, this helps with not changing anything not specifically edited *}
{elseif $columnName === 'total_amount'}{* rendered above as soft credit columns = confusing *}
{elseif $column.type === 'actions'}{* rendered below as soft credit column handling = not fixed *}
{$row.$columnName|crmDate}
</td>
{else}
- <td class="crm-{$columnName} crm-{$columnName}_{if $row.columnName}{$row.columnName}{/if}">
+ <td class="crm-{$columnName} crm-{$columnName}_">
{$row.$columnName}
</td>
{/if}