Skip to content
Snippets Groups Projects
Commit b52a8f03 authored by Pradeep Nayak's avatar Pradeep Nayak
Browse files

-- added formrule for CRM-12055

----------------------------------------
* 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
parent 5778c444
Branches
Tags
No related merge requests found
......@@ -310,6 +310,10 @@ SELECT id
}
}
//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)) {
......
......@@ -159,7 +159,7 @@
{/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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment