From aa3048189a493dafafee2a09cc6e9698a5415929 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Fri, 14 Jul 2017 01:32:12 +0530 Subject: [PATCH] CRM-20869, removed cruft code for check number ---------------------------------------- * CRM-20869: Remove cruft code for check number https://issues.civicrm.org/jira/browse/CRM-20869 --- templates/CRM/Contribute/Form/AdditionalPayment.tpl | 10 ---------- templates/CRM/Contribute/Form/Contribution.tpl | 11 ----------- templates/CRM/Event/Form/EventFees.tpl | 12 ------------ templates/CRM/Member/Form/MembershipRenewal.tpl | 8 -------- 4 files changed, 41 deletions(-) diff --git a/templates/CRM/Contribute/Form/AdditionalPayment.tpl b/templates/CRM/Contribute/Form/AdditionalPayment.tpl index 3dfc75634f..f0c916c309 100644 --- a/templates/CRM/Contribute/Form/AdditionalPayment.tpl +++ b/templates/CRM/Contribute/Form/AdditionalPayment.tpl @@ -174,14 +174,4 @@ {/literal} - {if !$contributionMode} - {include file="CRM/common/showHideByFieldValue.tpl" - trigger_field_id ="payment_instrument_id" - trigger_value = '4' - target_element_id ="checkNumber" - target_element_type ="table-row" - field_type ="select" - invert = 0 - } - {/if} {/if} diff --git a/templates/CRM/Contribute/Form/Contribution.tpl b/templates/CRM/Contribute/Form/Contribution.tpl index abaccbfa8f..151574ac1b 100644 --- a/templates/CRM/Contribute/Form/Contribution.tpl +++ b/templates/CRM/Contribute/Form/Contribution.tpl @@ -497,17 +497,6 @@ {/literal}{/if} }); - {if !$contributionMode} - {crmAPI var="checkVal" entity="OptionValue" action="getvalue" version="3" option_group_id="payment_instrument" name="Check" return="value"} - {include file="CRM/common/showHideByFieldValue.tpl" - trigger_field_id ="payment_instrument_id" - trigger_value = $checkVal - target_element_id ="checkNumber" - target_element_type ="table-row" - field_type ="select" - invert = 0 - } - {/if} {/if} {* not delete mode if*} {/if} {* closing of main custom data if *} diff --git a/templates/CRM/Event/Form/EventFees.tpl b/templates/CRM/Event/Form/EventFees.tpl index bdbad615eb..c42ae433dd 100644 --- a/templates/CRM/Event/Form/EventFees.tpl +++ b/templates/CRM/Event/Form/EventFees.tpl @@ -88,7 +88,6 @@ {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.check_number.label}{$form.check_number.html|crmAddClass:six} {if $showTransactionId } {$form.trxn_id.label}{$form.trxn_id.html} {/if} @@ -177,17 +176,6 @@ } {/if} -{if $paid and ($action eq 1 or ( $action eq 2 and !$hasPayment) ) and !$participantMode} -{include file="CRM/common/showHideByFieldValue.tpl" - trigger_field_id ="payment_instrument_id" - trigger_value = '4' - target_element_id ="checkNumber" - target_element_type ="table-row" - field_type ="select" - invert = 0 -} -{/if} - {if $context eq 'standalone' and $outBound_option != 2 }