Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused parameter ids['billing'] #18021

Merged
merged 1 commit into from
Aug 1, 2020

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

$ids['billing'] calculated, but unused

Before

$billingID = $ids['billing'] = CRM_Core_BAO_LocationType::getBilling();

After

$billingID = CRM_Core_BAO_LocationType::getBilling();

Technical Details

This has been around a long time but most places in the code just call CRM_Core_BAO_LocationType::getBilling(); as required now so it does nothing

Grepping for $ids['billing'] finds only one deprecated function

Comments

This is no longer used in later functions and a quick grep of the code finds only one deprecated
function still refers to ids-billing after this
@civibot
Copy link

civibot bot commented Aug 1, 2020

(Standard links)

@civibot civibot bot added the master label Aug 1, 2020
@@ -216,7 +215,6 @@ public function getInput(&$input, &$ids) {
$input['response_reason_text'] = $this->retrieve('x_response_reason_text', 'String', FALSE);
$input['subscription_paynum'] = $this->retrieve('x_subscription_paynum', 'Integer', FALSE, 0);
$input['trxn_id'] = $this->retrieve('x_trans_id', 'String', FALSE);
$input['trxn_id'] = $this->retrieve('x_trans_id', 'String', FALSE);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

look at the line above

@seamuslee001
Copy link
Contributor

Test fails unrelated

@seamuslee001 seamuslee001 merged commit 94ec0b7 into civicrm:master Aug 1, 2020
@seamuslee001 seamuslee001 deleted the ids_billing branch August 1, 2020 04:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants