From: Bradley Taylor Date: Sat, 16 Apr 2022 08:48:28 +0000 (+0100) Subject: Apply nodefaults to contact tabs for escape-on-output X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=cf5dc094edc1f442994ab7251a332bafa60c5011;p=civicrm-core.git Apply nodefaults to contact tabs for escape-on-output --- diff --git a/templates/CRM/Case/Page/Tab.tpl b/templates/CRM/Case/Page/Tab.tpl index ac1a4e2b44..9d54b54171 100644 --- a/templates/CRM/Case/Page/Tab.tpl +++ b/templates/CRM/Case/Page/Tab.tpl @@ -44,7 +44,7 @@ call_user_func(array('CRM_Core_Permission','check'), 'add cases') ) AND $allowToAddNewCase} {/if} diff --git a/templates/CRM/Contribute/Page/Tab.tpl b/templates/CRM/Contribute/Page/Tab.tpl index e6b2ce8d71..b02d5d4958 100644 --- a/templates/CRM/Contribute/Page/Tab.tpl +++ b/templates/CRM/Contribute/Page/Tab.tpl @@ -34,12 +34,12 @@
{if $permission EQ 'edit'} {capture assign=newContribURL}{crmURL p="civicrm/contact/view/contribution" q="reset=1&action=add&cid=`$contactId`&context=contribution"}{/capture} - {capture assign=link}class="action-item" href="{$newContribURL}"{/capture} - {ts 1=$link}Click Record Contribution to record a new contribution received from this contact.{/ts} + {capture assign=link}class="action-item" href="{$newContribURL|smarty:nodefaults}"{/capture} + {ts 1=$link|smarty:nodefaults}Click Record Contribution to record a new contribution received from this contact.{/ts} {if $newCredit} {capture assign=newCreditURL}{crmURL p="civicrm/contact/view/contribution" q="reset=1&action=add&cid=`$contactId`&context=contribution&mode=live"}{/capture} - {capture assign=link}class="action-item" href="{$newCreditURL}"{/capture} - {ts 1=$link}Click Submit Credit Card Contribution to process a new contribution on behalf of the contributor using their credit card.{/ts} + {capture assign=link}class="action-item" href="{$newCreditURL|smarty:nodefaults}"{/capture} + {ts 1=$link|smarty:nodefaults}Click Submit Credit Card Contribution to process a new contribution on behalf of the contributor using their credit card.{/ts} {/if} {else} {ts 1=$displayName}Contributions received from %1 since inception.{/ts} @@ -48,9 +48,9 @@ {if $action eq 16 and $permission EQ 'edit'} diff --git a/templates/CRM/Event/Page/Tab.tpl b/templates/CRM/Event/Page/Tab.tpl index 56f95044a6..2f059efdaa 100644 --- a/templates/CRM/Event/Page/Tab.tpl +++ b/templates/CRM/Event/Page/Tab.tpl @@ -17,22 +17,22 @@

{ts 1=$displayName}This page lists all event registrations for %1 since inception.{/ts} - {capture assign="link"}class="action-item" href="{$newEventURL}"{/capture} - {if $permission EQ 'edit'}{ts 1=$link}Click Add Event Registration to register this contact for an event.{/ts}{/if} + {capture assign="link"}class="action-item" href="{$newEventURL|smarty:nodefaults}"{/capture} + {if $permission EQ 'edit'}{ts 1=$link|smarty:nodefaults}Click Add Event Registration to register this contact for an event.{/ts}{/if} {if $accessContribution and $newCredit} {capture assign=newCreditURL}{crmURL p="civicrm/contact/view/participant" q="reset=1&action=add&cid=`$contactId`&context=participant&mode=live"}{/capture} - {capture assign="link"}class="action-item" href="{$newCreditURL}"{/capture} - {ts 1=$link}Click Submit Credit Card Event Registration to process a new New Registration on behalf of the participant using their credit card.{/ts} + {capture assign="link"}class="action-item" href="{$newCreditURL|smarty:nodefaults}"{/capture} + {ts 1=$link|smarty:nodefaults}Click Submit Credit Card Event Registration to process a new New Registration on behalf of the participant using their credit card.{/ts} {/if}

{if $action eq 16 and $permission EQ 'edit'} {/if}