-- notice fixes for CRM-12284
authorPradeep Dorugade <pradeep@pradeep.(none)>
Tue, 16 Apr 2013 12:12:41 +0000 (17:42 +0530)
committerPradeep Dorugade <pradeep@pradeep.(none)>
Tue, 16 Apr 2013 12:12:41 +0000 (17:42 +0530)
CRM/Event/Form/EventFees.php

index 8fd046edad82e7f8b26934ba4a4d61b8db4be9e8..c950afc4c6c38c1119fc494d6e9cfbd3e94be5fe 100644 (file)
@@ -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']]);
         }