From cc14a9ff2d9fc979b5e89f96dcf877fc2331bb19 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Sat, 2 Sep 2023 09:39:28 +1000 Subject: [PATCH] [REF] Convert from session status to deprecation warning --- CRM/Event/WorkflowMessage/ParticipantTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Event/WorkflowMessage/ParticipantTrait.php b/CRM/Event/WorkflowMessage/ParticipantTrait.php index a739ba1680..351608627e 100644 --- a/CRM/Event/WorkflowMessage/ParticipantTrait.php +++ b/CRM/Event/WorkflowMessage/ParticipantTrait.php @@ -114,7 +114,7 @@ trait CRM_Event_WorkflowMessage_ParticipantTrait { $participantPayment = civicrm_api3('ParticipantPayment', 'get', ['participant_id' => $participantID])['values']; if (!empty($participantPayment)) { // no ts() since this should be rare - CRM_Core_Session::setStatus('There might be a data problem, contribution id could not be loaded from the line item'); + CRM_Core_Error::deprecatedWarning('There might be a data problem, contribution id could not be loaded from the line item'); $participantPayment = reset($participantPayment); $this->setContributionID((int) $participantPayment['contribution_id']); } -- 2.25.1