From 7c1c194b2c016a69d2a2035eb7e561fa094af94c Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 29 Nov 2023 22:30:27 +1300 Subject: [PATCH] Fix fatal adding price set on contribution page --- CRM/Contribute/Form/Contribution.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/Contribution.php b/CRM/Contribute/Form/Contribution.php index f37dc232d2..f7a935aed8 100644 --- a/CRM/Contribute/Form/Contribution.php +++ b/CRM/Contribute/Form/Contribution.php @@ -2405,7 +2405,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP * @return int|null */ protected function getPriceSetID() { - return $this->getSubmittedValue('price_set_id'); + return $this->getSubmittedValue('price_set_id') ?: CRM_Utils_Request::retrieve('priceSetId', 'Integer'); } /** -- 2.25.1