From ff2ea89d8d456b9b6bed8f8391b4c775a064cbe3 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 19 Apr 2022 18:43:52 -0400 Subject: [PATCH] Fix dev/core#3168 broken download contribution invoice button --- CRM/Contribute/Form/ContributionView.php | 1 + templates/CRM/common/formButtons.tpl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/ContributionView.php b/CRM/Contribute/Form/ContributionView.php index f71c4272da..dadb38ac8e 100644 --- a/CRM/Contribute/Form/ContributionView.php +++ b/CRM/Contribute/Form/ContributionView.php @@ -308,6 +308,7 @@ class CRM_Contribute_Form_ContributionView extends CRM_Core_Form { 'title' => $invoiceButtonText, 'url' => 'civicrm/contribute/invoice', 'qs' => $pdfUrlParams, + 'class' => 'no-popup', 'icon' => 'fa-download', ]; $linkButtons[] = [ diff --git a/templates/CRM/common/formButtons.tpl b/templates/CRM/common/formButtons.tpl index 0652d10b45..649739f574 100644 --- a/templates/CRM/common/formButtons.tpl +++ b/templates/CRM/common/formButtons.tpl @@ -24,7 +24,7 @@ {capture assign=linkname}name="{$linkButton.ref}"{/capture} {else}{capture assign=linkname}name="{$linkButton.name}"{/capture} {/if} - {$icon|smarty:nodefaults}{$linkButton.title} + {$icon|smarty:nodefaults}{$linkButton.title} {/foreach} {/if} -- 2.25.1