From: Eileen McNaughton Date: Wed, 9 Feb 2022 23:58:03 +0000 (+1300) Subject: Bypass grumpy mode for contribution totals X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f24e33c433b50e1693c61513f9aee12ad4a9f295;p=civicrm-core.git Bypass grumpy mode for contribution totals These are assigned to the template from php & have nbsp in them (for better or worse) --- diff --git a/templates/CRM/Contribute/Page/ContributionTotals.tpl b/templates/CRM/Contribute/Page/ContributionTotals.tpl index f95aa06c10..d8c4bdb41f 100644 --- a/templates/CRM/Contribute/Page/ContributionTotals.tpl +++ b/templates/CRM/Contribute/Page/ContributionTotals.tpl @@ -13,10 +13,10 @@ {if !empty($annual.count)} - {ts}Current Year-to-Date{/ts} – {$annual.amount} -   {ts}# Completed Contributions{/ts} – {$annual.count} -   {ts}Avg Amount{/ts} – {$annual.avg} - {if $contributionSummary.cancel.amount} + {ts}Current Year-to-Date{/ts} – {$annual.amount|smarty:nodefaults} +   {ts}# Completed Contributions{/ts} – {$annual.count|smarty:nodefaults} +   {ts}Avg Amount{/ts} – {$annual.avg|smarty:nodefaults} + {if $contributionSummary.cancel.amount|smarty:nodefaults}   {/if} @@ -25,16 +25,16 @@ {if $contributionSummary } {if $contributionSummary.total.amount} - {ts}Total{/ts} – {$contributionSummary.total.amount} -   {ts}# Completed{/ts} – {$contributionSummary.total.count} -   {ts}Avg{/ts} – {$contributionSummary.total.avg} + {ts}Total{/ts} – {$contributionSummary.total.amount|smarty:nodefaults} +   {ts}# Completed{/ts} – {$contributionSummary.total.count|smarty:nodefaults} +   {ts}Avg{/ts} – {$contributionSummary.total.avg|smarty:nodefaults} {/if} - {if $contributionSummary.cancel.amount} -   {ts}Cancelled/Refunded{/ts} – {$contributionSummary.cancel.amount} + {if $contributionSummary.cancel.amount|smarty:nodefaults} +   {ts}Cancelled/Refunded{/ts} – {$contributionSummary.cancel.amount|smarty:nodefaults} {/if} - {if $contributionSummary.soft_credit.count} - {include file="CRM/Contribute/Page/ContributionSoftTotals.tpl" softCreditTotals=$contributionSummary.soft_credit} + {if $contributionSummary.soft_credit.count|smarty:nodefaults} + {include file="CRM/Contribute/Page/ContributionSoftTotals.tpl" softCreditTotals=$contributionSummary.soft_credit|smarty:nodefaults} {/if} {/if}