rc only regression - price set validation on participant form
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 27 Oct 2023 21:32:29 +0000 (10:32 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 1 Nov 2023 20:26:48 +0000 (09:26 +1300)
CRM/Event/Form/Participant.php

index b4c0c6559f5c4ed38f0e9c466286cf3cf5eb02e5..d867ae8b12d61c225e78026708a92787e6ea7ba8 100644 (file)
@@ -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);
       }
     }