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

[REF] Switch to an api call to get the contact details. #17442

Merged
merged 1 commit into from
Jun 3, 2020

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Minor code simplification.

Before

Call to token function makes it hard to see what is happening

After

Turns out the token function is just stand in for a Contact.get call so switch...

Technical Details

Using v4 means I have to param wrangle so I stuck with
v3 for now (i.e if I switch to Email.get which I think I need to for v4 since Primary.email is
not a v4 search param I wind up with prefixes on the keys

Comments

It's much clearer that it's just a basic get. Using v4 means I have to param wrangle so I stuck with
v3 for now (i.e if I switch to Email.get which I think I need to for v4 since Primary.email is
not a v4 search param I wind up with prefixes on the keys
@civibot civibot bot added the master label Jun 1, 2020
@civibot
Copy link

civibot bot commented Jun 1, 2020

(Standard links)

@colemanw colemanw merged commit 30cf28d into civicrm:master Jun 3, 2020
@colemanw
Copy link
Member

colemanw commented Jun 3, 2020

FYI v4 allows field aliasing

@eileenmcnaughton eileenmcnaughton deleted the email3 branch June 3, 2020 01:21
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