Add deprecation notice
authoreileen <emcnaughton@wikimedia.org>
Tue, 18 Feb 2020 05:31:18 +0000 (18:31 +1300)
committereileen <emcnaughton@wikimedia.org>
Tue, 18 Feb 2020 05:31:18 +0000 (18:31 +1300)
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

index 57cbdae214b5fd1bc8cc7c4c9630655b1677de88..4a03783e024a0e31447c996b5ec5f0db4d04f051 100644 (file)
@@ -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