Skip to content

Commit

Permalink
Merge pull request #18856 from eileenmcnaughton/int_amount
Browse files Browse the repository at this point in the history
Remove meaningless legacy code
  • Loading branch information
colemanw authored Oct 27, 2020
2 parents 6008066 + 404f10e commit 17b7a1e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions CRM/Member/Form/Membership.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 17b7a1e

Please sign in to comment.