From 4741367789b04dfa045a397634712d6a479b97dc Mon Sep 17 00:00:00 2001 From: eileen Date: Sat, 15 Feb 2020 12:51:43 +1300 Subject: [PATCH] Remove additional display of buttons for events --- CRM/Contribute/Page/PaymentInfo.php | 3 --- templates/CRM/Contribute/Page/PaymentInfo.tpl | 15 --------------- 2 files changed, 18 deletions(-) diff --git a/CRM/Contribute/Page/PaymentInfo.php b/CRM/Contribute/Page/PaymentInfo.php index 00072cd0c881..d8c1f9a6a00f 100644 --- a/CRM/Contribute/Page/PaymentInfo.php +++ b/CRM/Contribute/Page/PaymentInfo.php @@ -27,9 +27,6 @@ public function preProcess() { $this->assign('id', $this->_id); $this->assign('context', $this->_context); $this->assign('component', $this->_component); - if ($this->_component != 'event') { - $this->assign('hideButtonLinks', TRUE); - } } public function browse() { diff --git a/templates/CRM/Contribute/Page/PaymentInfo.tpl b/templates/CRM/Contribute/Page/PaymentInfo.tpl index ad4ed127dde0..cd129712b179 100644 --- a/templates/CRM/Contribute/Page/PaymentInfo.tpl +++ b/templates/CRM/Contribute/Page/PaymentInfo.tpl @@ -48,23 +48,8 @@ CRM.$(function($) { {$paymentInfo.total|crmMoney:$paymentInfo.currency} {$paymentInfo.paid|crmMoney:$paymentInfo.currency} - {if !$hideButtonLinks} -
- - - {ts}view payments{/ts} - - {/if} {$paymentInfo.balance|crmMoney:$paymentInfo.currency} -{if $paymentInfo.balance and !$paymentInfo.payLater && !$hideButtonLinks} - {if $paymentInfo.balance > 0} - {assign var=paymentButtonName value='Record Payment'} - {elseif $paymentInfo.balance < 0} - {assign var=paymentButtonName value='Record Refund'} - {/if} - {ts}{$paymentButtonName}{/ts} -{/if} {/if}