Tpl enotice fixes
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sun, 19 Sep 2021 21:14:29 +0000 (09:14 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sun, 19 Sep 2021 21:14:29 +0000 (09:14 +1200)
templates/CRM/Contribute/Form/Selector.tpl

index dde319b31832be347c7c388e38961f316aa8291f..44eb77bfaf8e2beb0afe54fa01ce0c4f15807159 100644 (file)
@@ -25,7 +25,7 @@
           {if $header.sort}
             {assign var='key' value=$header.sort}
             {$sort->_response.$key.link}
-          {else}
+          {elseif (!empty($header.name))}
             {$header.name}
           {/if}
         </th>
@@ -48,7 +48,7 @@
              <a class="nowrap bold crm-expand-row" title="{ts}view payments{/ts}" href="{crmURL p='civicrm/payment' q="view=transaction&component=contribution&action=browse&cid=`$row.contact_id`&id=`$row.contribution_id`&selector=1"}">
                &nbsp; {$row.total_amount|crmMoney:$row.currency}
             </a>
-          {if $row.amount_level }<br/>({$row.amount_level}){/if}
+          {if !empty($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 }
@@ -68,7 +68,7 @@
             {/if}
           </td>
         {else}
-          {if $column.type == 'date'}
+          {if isset($column.type) && $column.type == 'date'}
             <td class="crm-contribution-{$columnName}">
               {$row.$columnName|crmDate}
             </td>