From 12a068a9d79599bc8b729d542a33a6efa54c2edf Mon Sep 17 00:00:00 2001 From: Justin Freeman Date: Thu, 23 Jun 2022 15:05:08 +1000 Subject: [PATCH] CIVICRM-2004 CiviCRM Personal Campaign Pages (PCP), incorrectly display "Don't list my contribution in the honor roll" even if the Contribution Honour Roll feature is not enabled or the user has opted out of the Honour Roll --- .../Contribute/Form/Contribution/Confirm.tpl | 28 ++++++++----------- .../Contribute/Form/Contribution/ThankYou.tpl | 22 ++++++--------- .../CRM/Event/Form/Registration/Confirm.tpl | 26 ++++++++--------- 3 files changed, 32 insertions(+), 44 deletions(-) diff --git a/templates/CRM/Contribute/Form/Contribution/Confirm.tpl b/templates/CRM/Contribute/Form/Contribution/Confirm.tpl index 3bfd864ea8..1beb28c2fe 100644 --- a/templates/CRM/Contribute/Form/Contribution/Confirm.tpl +++ b/templates/CRM/Contribute/Form/Contribution/Confirm.tpl @@ -182,29 +182,25 @@ {/if} - {if $pcpBlock} + {if $pcpBlock && $pcp_display_in_roll}
{ts}Contribution Honor Roll{/ts}
- {if $pcp_display_in_roll} - {ts}List my contribution{/ts} - {if $pcp_is_anonymous} - {ts}anonymously{/ts}. + {ts}List my contribution{/ts} + {if $pcp_is_anonymous} + {ts}anonymously{/ts}. + {else} + {ts}under the name{/ts}: + {$pcp_roll_nickname} +
+ {if $pcp_personal_note} + {ts}With the personal note{/ts}: + {$pcp_personal_note} {else} - {ts}under the name{/ts}: - {$pcp_roll_nickname} -
- {if $pcp_personal_note} - {ts}With the personal note{/ts}: - {$pcp_personal_note} - {else} - {ts}With no personal note{/ts} - {/if} + {ts}With no personal note{/ts} {/if} - {else} - {ts}Don't list my contribution in the honor roll.{/ts} {/if}
diff --git a/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl b/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl index 3e638d8aac..c9ac6090e0 100644 --- a/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl +++ b/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl @@ -215,26 +215,22 @@ {/if} - {if $pcpBlock} + {if $pcpBlock && $pcp_display_in_roll}
{ts}Contribution Honor Roll{/ts}
- {if $pcp_display_in_roll} - {ts}List my contribution{/ts} - {if $pcp_is_anonymous} - {ts}anonymously{/ts}. + {ts}List my contribution{/ts} + {if $pcp_is_anonymous} + {ts}anonymously{/ts}. + {else} + {ts}under the name{/ts}: {$pcp_roll_nickname}
+ {if $pcp_personal_note} + {ts}With the personal note{/ts}: {$pcp_personal_note} {else} - {ts}under the name{/ts}: {$pcp_roll_nickname}
- {if $pcp_personal_note} - {ts}With the personal note{/ts}: {$pcp_personal_note} - {else} - {ts}With no personal note{/ts} - {/if} + {ts}With no personal note{/ts} {/if} - {else} - {ts}Don't list my contribution in the honor roll.{/ts} {/if}
diff --git a/templates/CRM/Event/Form/Registration/Confirm.tpl b/templates/CRM/Event/Form/Registration/Confirm.tpl index 862728aa97..20fa9774f0 100644 --- a/templates/CRM/Event/Form/Registration/Confirm.tpl +++ b/templates/CRM/Event/Form/Registration/Confirm.tpl @@ -55,28 +55,24 @@
- {if $pcpBlock} + {if $pcpBlock && $pcp_display_in_roll}
{ts}Contribution Honor Roll{/ts}
- {if $pcp_display_in_roll} - {ts}List my contribution{/ts} - {if $pcp_is_anonymous} - {ts}anonymously{/ts}. - {else} + {ts}List my contribution{/ts} + {if $pcp_is_anonymous} + {ts}anonymously{/ts}. + {else} {ts}under the name{/ts}: {$pcp_roll_nickname}
- {if $pcp_personal_note} - {ts}With the personal note{/ts}: {$pcp_personal_note} - {else} - {ts}With no personal note{/ts} - {/if} - {/if} + {if $pcp_personal_note} + {ts}With the personal note{/ts}: {$pcp_personal_note} {else} - {ts}Don't list my contribution in the honor roll.{/ts} - {/if} -
+ {ts}With no personal note{/ts} + {/if} + {/if} +
{/if} -- 2.25.1