Fix for check number no longer exposed dev/core/issues/60
authoreileen <emcnaughton@wikimedia.org>
Mon, 30 Apr 2018 08:28:25 +0000 (20:28 +1200)
committereileen <emcnaughton@wikimedia.org>
Mon, 30 Apr 2018 08:28:49 +0000 (20:28 +1200)
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
templates/CRM/Event/Form/EventFees.tpl

index 415e9efcb07692f2d06b534cdfddd89df5890336..30672a1d7900e7161acb79fb06c0910e4467061a 100644 (file)
@@ -30,8 +30,6 @@
  *
  * @package CRM
  * @copyright CiviCRM LLC (c) 2004-2018
- * $Id$
- *
  */
 
 /**
index c5c254bbfdb614a194e1542c2c695d8fd8fd8cd7..0b40719f362f1badadb0fd5f3a9482aa7fa017a1 100644 (file)
@@ -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 *}
     <table class="form-layout">
     {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}
         <tr class="crm-event-eventfees-form-block-record_contribution">
             <td class="label">{$form.record_contribution.label}</td>
             <td>{$form.record_contribution.html}<br />
                     <td class="label" >{$form.receive_date.label}</td>
                     <td>{include file="CRM/common/jcalendar.tpl" elementName=receive_date}</td>
                 </tr>
-                <tr class="crm-event-eventfees-form-block-payment_instrument_id"><td class="label">{$form.payment_instrument_id.label}<span class="crm-marker"> *</span></td><td>{$form.payment_instrument_id.html} {help id="payment_instrument_id" file="CRM/Contribute/Page/Tab.hlp"}</td></tr>
                 {if $showTransactionId }
                     <tr class="crm-event-eventfees-form-block-trxn_id"><td class="label">{$form.trxn_id.label}</td><td>{$form.trxn_id.html}</td></tr>
                 {/if}
                 <tr class="crm-event-eventfees-form-block-contribution_status_id"><td class="label">{$form.contribution_status_id.label}</td><td>{$form.contribution_status_id.html}</td></tr>
+               <tr class="crm-event-eventfees-form-block-payment_instrument_id"><td class="label">{$form.payment_instrument_id.label}<span class="crm-marker"> *</span></td><td>{$form.payment_instrument_id.html} {help id="payment_instrument_id" file="CRM/Contribute/Page/Tab.hlp"}</td></tr>
              </table>
            </fieldset>
            </td>
 
 {/if}
 
-{if $action neq 2}
+{if $isShowBillingBlock}
   {include file='CRM/Core/BillingBlockWrapper.tpl'}
 {/if}