Skip to content

Commit

Permalink
Merge pull request #19923 from MikeyMJCO/patch-8
Browse files Browse the repository at this point in the history
Set the `Other Amount` input in a price set to not autocomplete
  • Loading branch information
eileenmcnaughton authored Mar 29, 2021
2 parents 48649f1 + 7da854b commit ceda85a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CRM/Price/BAO/PriceField.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,10 @@ public static function addQuickFormElement(
if (!empty($qf->_quickConfig) && !empty($qf->_contributionAmount) && strtolower($fieldOptions[$optionKey]['name']) == 'other_amount') {
$label .= ' ' . $currencySymbol;
$qf->assign('priceset', $elementName);
$extra = ['onclick' => 'useAmountOther();'];
$extra = [
'onclick' => 'useAmountOther();',
'autocomplete' => 'off',
];
}
}

Expand Down

0 comments on commit ceda85a

Please sign in to comment.