Fix for dev/core#2447: wrong event fee stored
authorJaap Jansma <jaap.jansma@civicoop.org>
Mon, 15 Mar 2021 16:25:31 +0000 (17:25 +0100)
committerJaap Jansma <jaap.jansma@civicoop.org>
Mon, 15 Mar 2021 16:25:31 +0000 (17:25 +0100)
CRM/Event/BAO/Participant.php

index d287f8fb9d97b2118780eceee1f3729c91fe79ec..5c719c7964cd384e217f1477985de507113a8c7c 100644 (file)
@@ -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)) {