diff --git a/CRM/Event/Form/EventFees.php b/CRM/Event/Form/EventFees.php index 8fd046edad82e7f8b26934ba4a4d61b8db4be9e8..c950afc4c6c38c1119fc494d6e9cfbd3e94be5fe 100644 --- a/CRM/Event/Form/EventFees.php +++ b/CRM/Event/Form/EventFees.php @@ -99,7 +99,7 @@ class CRM_Event_Form_EventFees { } } - if ($form->_discountId) { + if ($form->_discountId && CRM_Utils_Array::value($defaults[$form->_pId]['discount_id'], $discounts)) { $form->assign('discount', $discounts[$defaults[$form->_pId]['discount_id']]); }