From 4b7f91705cf2f4cb1efbf0bf53fe0f63d0c497e7 Mon Sep 17 00:00:00 2001 From: Mikey O'Toole Date: Sat, 27 Mar 2021 17:26:19 +0000 Subject: [PATCH] Set the `Other Amount` input in a price set to not autocomplete --- CRM/Price/BAO/PriceField.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Price/BAO/PriceField.php b/CRM/Price/BAO/PriceField.php index 4827d2f132..c3099a2da4 100644 --- a/CRM/Price/BAO/PriceField.php +++ b/CRM/Price/BAO/PriceField.php @@ -328,7 +328,10 @@ class CRM_Price_BAO_PriceField extends CRM_Price_DAO_PriceField { 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' + ]; } } -- 2.25.1