From 03925ffb82e8c116054f640c2c3d2195a82e2f03 Mon Sep 17 00:00:00 2001 From: larssandergreen Date: Thu, 28 Sep 2023 17:05:08 -0600 Subject: [PATCH] Fix missing participant params regression from 27605 --- CRM/Event/Form/EventFees.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CRM/Event/Form/EventFees.php b/CRM/Event/Form/EventFees.php index 19df7f1671..b0601f014b 100644 --- a/CRM/Event/Form/EventFees.php +++ b/CRM/Event/Form/EventFees.php @@ -73,6 +73,8 @@ class CRM_Event_Form_EventFees { $params = ['id' => $form->_pId]; CRM_Event_BAO_Participant::getValues($params, $defaults, $ids); + $defaults += $defaults[$form->_pId]; + unset($defaults[$form->_pId]); if ($form->_action == CRM_Core_Action::UPDATE) { $discounts = []; if (!empty($form->_values['discount'])) { -- 2.25.1