From 404f10ec71741c5d3d875d1abbfe9c58f8184610 Mon Sep 17 00:00:00 2001 From: eileen Date: Mon, 26 Oct 2020 18:22:38 +1300 Subject: [PATCH] Remove meaningless legacy code I looked around & I am pretty sure int_amount is never set and init_amount is never used --- CRM/Member/Form/Membership.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/CRM/Member/Form/Membership.php b/CRM/Member/Form/Membership.php index f8e50a2e972e..7e57ba159545 100644 --- a/CRM/Member/Form/Membership.php +++ b/CRM/Member/Form/Membership.php @@ -1568,15 +1568,6 @@ public function submit() { $params['receive_date'] = date('Y-m-d H:i:s'); } $membershipParams = array_merge($params, $membershipTypeValues[$memType]); - if (!empty($formValues['int_amount'])) { - $init_amount = []; - foreach ($formValues as $key => $value) { - if (strstr($key, 'txt-price')) { - $init_amount[$key] = $value; - } - } - $membershipParams['init_amount'] = $init_amount; - } if (!empty($softParams)) { $membershipParams['soft_credit'] = $softParams;