dev/core#4795 fix regression on other amount on main contribution page
authorEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 23 Nov 2023 19:49:35 +0000 (08:49 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 23 Nov 2023 19:49:35 +0000 (08:49 +1300)
CRM/Contribute/Form/Contribution/Main.php

index 11d1a28c730a1867c5a26d1404cb366a4f3ec5e9..46cf7e28c06184f0530917481e2ea8043a4a33ab 100644 (file)
@@ -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'];
       }
     }