From 855cc2c91164250352255b2a25755b6db407bba0 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 24 Nov 2023 08:49:35 +1300 Subject: [PATCH] dev/core#4795 fix regression on other amount on main contribution page --- CRM/Contribute/Form/Contribution/Main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/Contribution/Main.php b/CRM/Contribute/Form/Contribution/Main.php index 11d1a28c73..46cf7e28c0 100644 --- a/CRM/Contribute/Form/Contribution/Main.php +++ b/CRM/Contribute/Form/Contribution/Main.php @@ -578,7 +578,7 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu return NULL; } foreach ($this->order->getPriceFieldsMetadata() as $field) { - if ($field['name'] !== 'other_amount') { + if ($field['name'] === 'contribution_amount') { return (int) $field['id']; } } -- 2.25.1