From 5bd1955b93fa77118fc19a0eaec65146121b07c7 Mon Sep 17 00:00:00 2001 From: Jaap Jansma Date: Mon, 15 Mar 2021 17:25:31 +0100 Subject: [PATCH] Fix for dev/core#2447: wrong event fee stored --- CRM/Event/BAO/Participant.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/CRM/Event/BAO/Participant.php b/CRM/Event/BAO/Participant.php index d287f8fb9d..5c719c7964 100644 --- a/CRM/Event/BAO/Participant.php +++ b/CRM/Event/BAO/Participant.php @@ -80,10 +80,6 @@ class CRM_Event_BAO_Participant extends CRM_Event_DAO_Participant { $params['participant_fee_amount'] = CRM_Utils_Rule::cleanMoney($params['participant_fee_amount']); } - if (!empty($params['fee_amount'])) { - $params['fee_amount'] = CRM_Utils_Rule::cleanMoney($params['fee_amount']); - } - // ensure that role ids are encoded as a string if (isset($params['role_id']) && is_array($params['role_id'])) { if (in_array(key($params['role_id']), CRM_Core_DAO::acceptedSQLOperators(), TRUE)) { -- 2.25.1