From e25437612df4d03725fdf6c244dd425b30118bd2 Mon Sep 17 00:00:00 2001 From: eileen Date: Wed, 3 Feb 2021 14:38:49 +1300 Subject: [PATCH] Remove attempt to load contriution id from invoiceID This might make sense (maybe) on the front end code this was previously shared with but on the backoffice form id would be specifically set in the url --- CRM/Member/Form/Membership.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/CRM/Member/Form/Membership.php b/CRM/Member/Form/Membership.php index c3561abea1..0d13063386 100644 --- a/CRM/Member/Form/Membership.php +++ b/CRM/Member/Form/Membership.php @@ -1897,14 +1897,6 @@ DESC limit 1"); } $contributionParams['contribution_status_id'] = CRM_Core_PseudoConstant::getKey('CRM_Contribute_BAO_Contribution', 'contribution_status_id', 'Pending'); - if (isset($contributionParams['invoice_id'])) { - $contributionParams['id'] = CRM_Core_DAO::getFieldValue( - 'CRM_Contribute_DAO_Contribution', - $contributionParams['invoice_id'], - 'id', - 'invoice_id' - ); - } $contributionParams['skipCleanMoney'] = TRUE; // @todo this is the wrong place for this - it should be done as close to form submission -- 2.25.1