From 20dfd06ad1046478ddce631f0524c8b2b93b5106 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 29 Nov 2023 23:03:06 +1300 Subject: [PATCH] Notice fix - specify emailMode is false when including SocialNetwork.tpl --- templates/CRM/Campaign/Form/Petition/Signature.tpl | 2 +- templates/CRM/Campaign/Page/Petition/Confirm.tpl | 2 +- templates/CRM/Campaign/Page/Petition/SocialNetwork.tpl | 2 +- templates/CRM/Campaign/Page/Petition/ThankYou.tpl | 2 +- templates/CRM/Contribute/Form/Contribution/ThankYou.tpl | 2 +- templates/CRM/Event/Form/Registration/ThankYou.tpl | 2 +- templates/CRM/Friend/Form.tpl | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/CRM/Campaign/Form/Petition/Signature.tpl b/templates/CRM/Campaign/Form/Petition/Signature.tpl index 25d57dd7c9..0460eb9f7a 100644 --- a/templates/CRM/Campaign/Form/Petition/Signature.tpl +++ b/templates/CRM/Campaign/Form/Petition/Signature.tpl @@ -38,7 +38,7 @@ {if $duplicate}

{ts}Thank you for your support.{/ts}

{if $is_share} - {include file="CRM/Campaign/Page/Petition/SocialNetwork.tpl" petition_id=$survey_id petitionTitle=$petitionTitle} + {include file="CRM/Campaign/Page/Petition/SocialNetwork.tpl" petition_id=$survey_id petitionTitle=$petitionTitle emailMode=false} {/if} {else}
diff --git a/templates/CRM/Campaign/Page/Petition/Confirm.tpl b/templates/CRM/Campaign/Page/Petition/Confirm.tpl index b9c4b848d3..9a882966b1 100644 --- a/templates/CRM/Campaign/Page/Petition/Confirm.tpl +++ b/templates/CRM/Campaign/Page/Petition/Confirm.tpl @@ -25,6 +25,6 @@ {/if}
{if $is_share} - {include file="CRM/Campaign/Page/Petition/SocialNetwork.tpl"} + {include file="CRM/Campaign/Page/Petition/SocialNetwork.tpl" emailMode=false} {/if} {/if} diff --git a/templates/CRM/Campaign/Page/Petition/SocialNetwork.tpl b/templates/CRM/Campaign/Page/Petition/SocialNetwork.tpl index 2a21106185..bf76991cb2 100644 --- a/templates/CRM/Campaign/Page/Petition/SocialNetwork.tpl +++ b/templates/CRM/Campaign/Page/Petition/SocialNetwork.tpl @@ -4,4 +4,4 @@ You might have a specific page that displays more information that the form. Check SocialNetwork.drupal as an example *} {capture assign=petitionURL}{crmURL p='civicrm/petition/sign' q="sid=`$petition_id`" a=1 fe=1 h=1}{/capture} -{include file="CRM/common/SocialNetwork.tpl" url=$petitionURL title=$petitionTitle pageURL=$petitionURL} +{include file="CRM/common/SocialNetwork.tpl" url=$petitionURL title=$petitionTitle pageURL=$petitionURL emailMode=false} diff --git a/templates/CRM/Campaign/Page/Petition/ThankYou.tpl b/templates/CRM/Campaign/Page/Petition/ThankYou.tpl index 17765567fb..c951be7340 100644 --- a/templates/CRM/Campaign/Page/Petition/ThankYou.tpl +++ b/templates/CRM/Campaign/Page/Petition/ThankYou.tpl @@ -38,7 +38,7 @@ {/if} {if $is_share} - {include file="CRM/Campaign/Page/Petition/SocialNetwork.tpl" petition_id=$survey_id petitionTitle=$petitionTitle} + {include file="CRM/Campaign/Page/Petition/SocialNetwork.tpl" petition_id=$survey_id petitionTitle=$petitionTitle emailMode=false} {/if} {/if} diff --git a/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl b/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl index 9d62a6bbd5..5d6e7943b5 100644 --- a/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl +++ b/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl @@ -315,6 +315,6 @@ {if $isShare} {capture assign=contributionUrl}{crmURL p='civicrm/contribute/transact' q="$qParams" a=1 fe=1 h=1}{/capture} - {include file="CRM/common/SocialNetwork.tpl" url=$contributionUrl title=$title pageURL=$contributionUrl} + {include file="CRM/common/SocialNetwork.tpl" url=$contributionUrl title=$title pageURL=$contributionUrl emailMode=false} {/if} diff --git a/templates/CRM/Event/Form/Registration/ThankYou.tpl b/templates/CRM/Event/Form/Registration/ThankYou.tpl index bd0ba9bcd6..f697f70e55 100644 --- a/templates/CRM/Event/Form/Registration/ThankYou.tpl +++ b/templates/CRM/Event/Form/Registration/ThankYou.tpl @@ -203,6 +203,6 @@ {/if} {if $event.is_share} {capture assign=eventUrl}{crmURL p='civicrm/event/info' q="id=`$event.id`&reset=1" a=1 fe=1 h=1}{/capture} - {include file="CRM/common/SocialNetwork.tpl" url=$eventUrl title=$event.title pageURL=$eventUrl} + {include file="CRM/common/SocialNetwork.tpl" url=$eventUrl title=$event.title pageURL=$eventUrl emailMode=false} {/if} diff --git a/templates/CRM/Friend/Form.tpl b/templates/CRM/Friend/Form.tpl index 63d521a85a..3988e7d6f4 100644 --- a/templates/CRM/Friend/Form.tpl +++ b/templates/CRM/Friend/Form.tpl @@ -81,5 +81,5 @@ {else} {capture assign=pageURL}{crmURL p='civicrm/contribute/transact' q="reset=1&id=`$entityID`" a=1 fe=1 h=1}{/capture} {/if} - {include file="CRM/common/SocialNetwork.tpl" url=$pageURL title=$title pageURL=$pageURL} + {include file="CRM/common/SocialNetwork.tpl" url=$pageURL title=$title pageURL=$pageURL emailMode=false} {/if} -- 2.25.1