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

Stop calling confusing function that doesn't do much ..... #22468

Merged
merged 1 commit into from
Jan 12, 2022

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Stop calling confusing function that doesn't do much .....

Before

call to CRM_Contact_BAO_Relationship::setContactABFromIDs is super confusing - but it turns out it only
does

$contactFields = [
      'contact_id_a' => $contactID,
      'contact_id_b' => $organizationID,
      'relationship_type_id' => $relationshipTypeID,
    ];

After

Just formats the array directly

Technical Details

Comments

@civibot
Copy link

civibot bot commented Jan 11, 2022

(Standard links)

@civibot civibot bot added the master label Jan 11, 2022
@eileenmcnaughton
Copy link
Contributor Author

@colemanw @seamuslee001 could one of you merge this one?

@seamuslee001
Copy link
Contributor

ok I stepped through this and agree that this is correct

@seamuslee001 seamuslee001 merged commit 0e3217c into civicrm:master Jan 12, 2022
@seamuslee001 seamuslee001 deleted the ab branch January 12, 2022 04:49
@eileenmcnaughton
Copy link
Contributor Author

thanks @seamuslee001

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