From 763cee943249a1b95be96b70a7458fe6f5479b04 Mon Sep 17 00:00:00 2001 From: Jaap Jansma Date: Mon, 21 Jun 2021 16:52:56 +0200 Subject: [PATCH] dev/financial#6 exclude template contributions from the contact summary and add a button to view them to the recurring contributions tab --- CRM/Contribute/Page/Tab.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contribute/Page/Tab.php b/CRM/Contribute/Page/Tab.php index cdb4c55fdb..151326fe08 100644 --- a/CRM/Contribute/Page/Tab.php +++ b/CRM/Contribute/Page/Tab.php @@ -58,7 +58,7 @@ class CRM_Contribute_Page_Tab extends CRM_Core_Page { 'qs' => "reset=1&id=%%crid%%&cid=%%cid%%&context={$context}", ], ]; - if (!empty($templateContribution['id'])) { + if (!empty($templateContribution['id']) && !empty($templateContribution['is_template'])) { // Use constant CRM_Core_Action::PREVIEW as there is no such thing as view template. // And reusing view will mangle the actions. $links[CRM_Core_Action::PREVIEW] = [ -- 2.25.1