From 79c2709d8aa5100374d3b9d364f27424dac1a182 Mon Sep 17 00:00:00 2001 From: Pradeep Dorugade Date: Tue, 16 Apr 2013 17:42:41 +0530 Subject: [PATCH] -- notice fixes for CRM-12284 --- CRM/Event/Form/EventFees.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Event/Form/EventFees.php b/CRM/Event/Form/EventFees.php index 8fd046edad..c950afc4c6 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']]); } -- 2.25.1