From 258a38ce9c549110be03ec3140516b4824ad8969 Mon Sep 17 00:00:00 2001 From: eileen Date: Mon, 30 Apr 2018 20:28:25 +1200 Subject: [PATCH] Fix for check number no longer exposed dev/core/issues/60 I also noticed that the record payment checkbox is not checked when it really should be - but I think that is unrelated to this issue --- CRM/Event/Form/EventFees.php | 2 -- templates/CRM/Event/Form/EventFees.tpl | 6 ++++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CRM/Event/Form/EventFees.php b/CRM/Event/Form/EventFees.php index 415e9efcb0..30672a1d79 100644 --- a/CRM/Event/Form/EventFees.php +++ b/CRM/Event/Form/EventFees.php @@ -30,8 +30,6 @@ * * @package CRM * @copyright CiviCRM LLC (c) 2004-2018 - * $Id$ - * */ /** diff --git a/templates/CRM/Event/Form/EventFees.tpl b/templates/CRM/Event/Form/EventFees.tpl index c5c254bbfd..0b40719f36 100644 --- a/templates/CRM/Event/Form/EventFees.tpl +++ b/templates/CRM/Event/Form/EventFees.tpl @@ -24,6 +24,7 @@ +--------------------------------------------------------------------+ *} {assign var=isRecordPayment value=1 } +{assign var=isShowBillingBlock value=($action neq 2)} {if $paid} {* We retrieve this tpl when event is selected - keep it empty if event is not paid *} {if $priceSet} @@ -68,6 +69,7 @@ {/if} {if $accessContribution and ! $participantMode and ($action neq 2 or !$rows.0.contribution_id or $onlinePendingContributionId) and $isRecordPayment and ! $registeredByParticipantId } + {assign var=isShowBillingBlock value=true} - {if $showTransactionId } {/if} +
{$form.record_contribution.label} {$form.record_contribution.html}
@@ -87,11 +89,11 @@
{$form.receive_date.label} {include file="CRM/common/jcalendar.tpl" elementName=receive_date}
{$form.payment_instrument_id.label} *{$form.payment_instrument_id.html} {help id="payment_instrument_id" file="CRM/Contribute/Page/Tab.hlp"}
{$form.trxn_id.label}{$form.trxn_id.html}
{$form.contribution_status_id.label}{$form.contribution_status_id.html}
{$form.payment_instrument_id.label} *{$form.payment_instrument_id.html} {help id="payment_instrument_id" file="CRM/Contribute/Page/Tab.hlp"}
@@ -101,7 +103,7 @@ {/if} -{if $action neq 2} +{if $isShowBillingBlock} {include file='CRM/Core/BillingBlockWrapper.tpl'} {/if} -- 2.25.1