X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2FCRM%2FContribute%2FForm%2FContribution.tpl;h=1f1233130d218adec443f6b785bc46269366a26e;hb=28a39166963513aed5b93a91af4aedd0452109f7;hp=e9428e973487041863d35193adf1754635ede821;hpb=95224cff8e206cc4813610876bb1026b85bd739a;p=civicrm-core.git
diff --git a/templates/CRM/Contribute/Form/Contribution.tpl b/templates/CRM/Contribute/Form/Contribution.tpl
index e9428e9734..1f1233130d 100644
--- a/templates/CRM/Contribute/Form/Contribution.tpl
+++ b/templates/CRM/Contribute/Form/Contribution.tpl
@@ -104,7 +104,7 @@
{/if}
- {if $ppID}{ts}adjust payment amount{/ts}{help id="adjust-payment-amount"}{/if}
+ {if $ppID}{ts}adjust payment amount{/ts}{help id="adjust-payment-amount"}{/if}
{if $hasPriceSets}
{ts}Alternatively, you can use a price set.{/ts}{/if}
@@ -255,12 +255,6 @@
{$form.payment_instrument_id.html} {help id="payment_instrument_id"} |
- {if $showCheckNumber || !$isOnline}
-
- {$form.check_number.label} |
- {$form.check_number.html} |
-
- {/if}
{$form.trxn_id.label} |
{$form.trxn_id.html} {help id="id-trans_id"} |
@@ -497,17 +491,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 *}
@@ -572,7 +555,9 @@ function buildAmount( priceSetId, financialtypeIds ) {
cj("#price_set_id option[value='']").html( manual );
cj('label[for="total_amount"]').text('{/literal}{ts}Price Sets{/ts}{literal}');
- cj("#financial_type_id option[value="+financialtypeIds[priceSetId]+"]").prop('selected', true);
+ if (financialtypeIds) {
+ cj("#financial_type_id option[value="+financialtypeIds[priceSetId]+"]").prop('selected', true);
+ }
cj(".crm-contribution-form-block-financial_type_id").css("display", "none");
}