From: Eileen McNaughton Date: Thu, 23 Nov 2023 19:49:35 +0000 (+1300) Subject: dev/core#4795 fix regression on other amount on main contribution page X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=855cc2c91164250352255b2a25755b6db407bba0;p=civicrm-core.git dev/core#4795 fix regression on other amount on main contribution page --- 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']; } }