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

Fully remove contactAB function #22485

Merged
merged 1 commit into from
Jan 13, 2022
Merged

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Fully remove contactAB function

Before

The function was a really long winded way of doing what the 3 lines do.

Universe search did not reveal other usages and it is not the
sort of function we would expect to be used by extensions so
I'm straight removing it

After

poof

Technical Details

Comments

The function was a really long winded way of doing what the 3 lines do.

Universe search did not reveal other usages and it is not the
sort of function we would expect to be used by extensions so
I'm straight removing it
@civibot civibot bot added the master label Jan 12, 2022
@civibot
Copy link

civibot bot commented Jan 12, 2022

(Standard links)

@@ -170,7 +170,8 @@ public static function legacyCreateMultiple($params, $ids = []) {
// only returns 2 calls - one in CRM_Contact_Import_Parser_Contact
// and the other in jma grant applications (CRM_Grant_Form_Grant_Confirm)
// both only pass in contact as a key here.
$ids = ['contact' => $ids['contact']];
$contactID = $ids['contact'];
unset($ids);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

just for clarity...

$returnFields = [];

// $ids['contact'] is deprecated but comes from legacyCreateMultiple function.
if (empty($ids['contact'])) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ignore this if - never true

@colemanw colemanw merged commit da048c6 into civicrm:master Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants