Require all fields in signature, as always passed
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 23 Sep 2023 11:55:05 +0000 (23:55 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 23 Sep 2023 11:59:03 +0000 (23:59 +1200)
CRM/Event/Form/Registration/Register.php

index 1a3e3adc149158c6a615ad70cddba7cb816bf18a..c0f4b6badaf48397de19811c916bd67200b12e5f 100644 (file)
@@ -537,6 +537,10 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration {
   /**
    * Build the radio/text form elements for the amount field
    *
+   * @internal function is not currently called by any extentions in our civi
+   * 'universe' and is not supported for such use. Signature has changed & will
+   * change again.
+   *
    * @param CRM_Event_Form_Registration_Register $form
    *   Form object.
    * @param bool $required
@@ -547,7 +551,7 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration {
    *
    * @throws \CRM_Core_Exception
    */
-  public static function buildAmount(&$form, $required = TRUE, $discountId = NULL, $priceSetID = NULL) {
+  public static function buildAmount($form, $required, $discountId, $priceSetID) {
     $feeFields = $form->_values['fee'] ?? NULL;
 
     if (is_array($feeFields)) {