From 32b59dd0789bc6d5bd0584b42d939250b5d42e9a Mon Sep 17 00:00:00 2001 From: eileen Date: Tue, 18 Feb 2020 18:31:18 +1300 Subject: [PATCH] Add deprecation notice I've been trying to figure out when this line would be hit but I just can't find a way to trigger it - removing it would help a lot with this code but let's deprecate for a bit. --- CRM/Event/Form/Participant.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Event/Form/Participant.php b/CRM/Event/Form/Participant.php index 57cbdae214..4a03783e02 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -1879,6 +1879,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment $params['fee_level'] = $params['amount_level'] = $this->getParticipantValue('fee_level'); $params['fee_amount'] = $this->getParticipantValue('fee_amount'); if (isset($params['priceSetId'])) { + CRM_Core_Error::deprecatedFunctionWarning('It seems this line is never hit & can go.'); $lineItem[0] = CRM_Price_BAO_LineItem::getLineItems($this->_id); } //also add additional participant's fee level/priceset -- 2.25.1