From 2f48e71334b9b8a55523b33fa063b1e7b45649cd Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Mon, 22 May 2017 16:51:38 +0530 Subject: [PATCH] CRM-20613, fixed notice error by using getKey method ---------------------------------------- * CRM-20613: User deprecated function: Deprecated function for New Participant https://issues.civicrm.org/jira/browse/CRM-20613 --- CRM/Event/Form/Participant.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Event/Form/Participant.php b/CRM/Event/Form/Participant.php index 0a8dc5db48..f04b0cc81e 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -1374,10 +1374,10 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment $contributionParams['participant_id'] = $this->_id; } // Set is_pay_later flag for back-office offline Pending status contributions - if ($contributionParams['contribution_status_id'] == CRM_Core_OptionGroup::getValue('contribution_status', 'Pending', 'name')) { + if ($contributionParams['contribution_status_id'] == CRM_Core_PseudoConstant::getKey('CRM_Contribute_DAO_Contribution', 'contribution_status_id', 'Pending')) { $contributionParams['is_pay_later'] = 1; } - elseif ($contributionParams['contribution_status_id'] == CRM_Core_OptionGroup::getValue('contribution_status', 'Completed', 'name')) { + elseif ($contributionParams['contribution_status_id'] == CRM_Core_PseudoConstant::getKey('CRM_Contribute_DAO_Contribution', 'contribution_status_id', 'Completed')) { $contributionParams['is_pay_later'] = 0; } -- 2.25.1