X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FEvent%2FForm%2FEventFees.php;h=2b15c288cef972ecb51c2c820849c9c0c13e9593;hb=f6d8cb2ff9d8e1ecd9843d735f0657e0c8cd2fca;hp=14be8ec5f6e8ba76f251f09d514389b5a240aacc;hpb=7cecaecdab6f213ba2a9f4173c622f44430cfb5c;p=civicrm-core.git diff --git a/CRM/Event/Form/EventFees.php b/CRM/Event/Form/EventFees.php index 14be8ec5f6..2b15c288ce 100644 --- a/CRM/Event/Form/EventFees.php +++ b/CRM/Event/Form/EventFees.php @@ -159,6 +159,7 @@ class CRM_Event_Form_EventFees { if (in_array(get_class($form), [ 'CRM_Event_Form_Participant', + 'CRM_Event_Form_Task_Register', 'CRM_Event_Form_Registration_Register', 'CRM_Event_Form_Registration_AdditionalParticipant', ] @@ -173,7 +174,7 @@ class CRM_Event_Form_EventFees { foreach ($form->_priceSet['fields'] as $key => $val) { foreach ($val['options'] as $keys => $values) { if ($values['is_default']) { - if (get_class($form) != 'CRM_Event_Form_Participant' && !empty($values['is_full'])) { + if (!in_array(get_class($form), ['CRM_Event_Form_Participant', 'CRM_Event_Form_Task_Register']) && !empty($values['is_full'])) { continue; }