));
$extra = array();
- if (!empty($qf->_quickConfig) && !empty($qf->_contributionAmount)) {
- foreach ($fieldOptions as &$fieldOption) {
- if (strtolower($fieldOption['name']) == 'other_amount') {
- $fieldOption['label'] = $fieldOption['label'] . ' ' . $currencySymbol;
- }
- }
- $qf->assign('priceset', $elementName);
- $extra = array('onclick' => 'useAmountOther();');
- }
-
if (!empty($qf->_membershipBlock) && !empty($qf->_quickConfig) && $field->name == 'other_amount' && empty($qf->_contributionAmount)) {
$useRequired = 0;
}
elseif (!empty($fieldOptions[$optionKey]['label'])) {
//check for label.
$label = $fieldOptions[$optionKey]['label'];
+ if (!empty($qf->_quickConfig) && !empty($qf->_contributionAmount) && strtolower($fieldOptions[$optionKey]['name']) == 'other_amount') {
+ $label .= ' ' . $currencySymbol;
+ $qf->assign('priceset', $elementName);
+ $extra = array('onclick' => 'useAmountOther();');
+ }
}
$element = &$qf->add('text', $elementName, $label,