----------------------------------------
* CRM-12055: Allow users to change label used for Contribution Amounts in online contribution page w/o switching to a price set
http://issues.civicrm.org/jira/browse/CRM-12055
}
}
+ //check for the amount label (mandatory)
+ if (CRM_Utils_Array::value('amount_block_is_active', $fields) && empty($fields['amount_label'])) {
+ $errors['amount_label'] = ts('Please enter the contribution amount label.');
+ }
$minAmount = CRM_Utils_Array::value('min_amount', $fields);
$maxAmount = CRM_Utils_Array::value('max_amount', $fields);
if (!empty($minAmount) && !empty($maxAmount)) {
{/if}
<tr class="crm-contribution-form-block-amount_label">
- <th scope="row" class="label" width="20%">{$form.amount_label.label}</th>
+ <th scope="row" class="label" width="20%">{$form.amount_label.label}<span class="marker"> *</span></th>
<td>{$form.amount_label.html}</td>
</tr>
<tr class="crm-contribution-form-block-is_allow_other_amount"><th scope="row" class="label" width="20%">{$form.is_allow_other_amount.label}</th>