From: Eileen McNaughton Date: Fri, 27 Oct 2023 21:32:29 +0000 (+1300) Subject: rc only regression - price set validation on participant form X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=73d0597991253299cd1817cfdc781a85f3450936;p=civicrm-core.git rc only regression - price set validation on participant form --- diff --git a/CRM/Event/Form/Participant.php b/CRM/Event/Form/Participant.php index b4c0c6559f..d867ae8b12 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -733,8 +733,8 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment if (empty($values['payment_instrument_id'])) { $errorMsg['payment_instrument_id'] = ts('Payment Method is a required field.'); } - if ($self->getPriceSetID()) { - CRM_Price_BAO_PriceField::priceSetValidation($self->getPriceSetID(), $values, $errorMsg); + if (!empty($values['priceSetId'])) { + CRM_Price_BAO_PriceField::priceSetValidation($values['priceSetId'], $values, $errorMsg); } }