}
//check for the amount label (mandatory)
- if (!empty($fields['amount_block_is_active']) && empty($fields['amount_label'])) {
+ if (!empty($fields['amount_block_is_active']) && empty($fields['price_set_id']) && empty($fields['amount_label'])) {
$errors['amount_label'] = ts('Please enter the contribution amount label.');
}
$minAmount = CRM_Utils_Array::value('min_amount', $fields);
{if $futurePaymentProcessor}
<tr id="adjustRecurringFields" class="crm-contribution-form-block-adjust_recur_start_date"><th scope="row" class="label">{$form.adjust_recur_start_date.label}</th>
<td>{$form.adjust_recur_start_date.html}<br/>
- <div id="recurDefaults">
+ <div id="recurDefaults">
<span class="description">{$form.pledge_default_toggle.label}</span>
<table class="form-layout-compressed">
<tr class="crm-contribution-form-block-date_of_recurring_contribution">
if (element) {
cj('#amountFields').hide();
}
+ else {
+ cj('#amountFields').show();
+ }
break;
case 'is_pledge_active':