From f24e33c433b50e1693c61513f9aee12ad4a9f295 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 10 Feb 2022 12:58:03 +1300 Subject: [PATCH] Bypass grumpy mode for contribution totals These are assigned to the template from php & have nbsp in them (for better or worse) --- .../Contribute/Page/ContributionTotals.tpl | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/templates/CRM/Contribute/Page/ContributionTotals.tpl b/templates/CRM/Contribute/Page/ContributionTotals.tpl index f95aa06c10b3..d8c4bdb41f26 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}