Fix validation on event-change
authoreileen <emcnaughton@wikimedia.org>
Fri, 5 Jan 2024 04:54:16 +0000 (17:54 +1300)
committereileen <emcnaughton@wikimedia.org>
Fri, 5 Jan 2024 04:54:16 +0000 (17:54 +1300)
CRM/Event/Form/Participant.php

index 43951ad95d80a8c6a08af7802e80b5e8f87b1110..a95e3159eba7f8c894f89df4968d5328464bac75 100644 (file)
@@ -769,7 +769,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment
         $errorMsg['payment_instrument_id'] = ts('Payment Method is a required field.');
       }
       if (!empty($values['priceSetId'])) {
-        CRM_Price_BAO_PriceField::priceSetValidation($values['priceSetId'], $values, $errorMsg);
+        CRM_Price_BAO_PriceField::priceSetValidation($self->getPriceSetID(), $values, $errorMsg);
       }
     }