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

dev/core#2079 [REF] clean up call to apiQuery #18665

Merged
merged 1 commit into from
Oct 6, 2020

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Oct 2, 2020

Overview

dev/core#2079 [REF] clean up call to apiQuery

Before

static method called non-statically.
results put into $details keyed as $details[0] & referenced as $details[0]

After

results put into $details & referenced as ``$details```

Technical Details

This fixes
1) fixes apiQuery to be called statically as it is a static function
2) casts results directly to detail

This is the copy & paste source of #18664 I guess....

Comments

Code cover in CRM_Contact_Form_Task_PrintMailingLabelTest::testMailingLabel

@civibot
Copy link

civibot bot commented Oct 2, 2020

(Standard links)

@civibot civibot bot added the master label Oct 2, 2020
@eileenmcnaughton
Copy link
Contributor Author

test this please

1 similar comment
@seamuslee001
Copy link
Contributor

test this please

    This fixes
    1) fixes apiQuery to be called statically as it is a static function
    2) casts results directly to detail

This is the copy & paste source of civicrm#18664 I guess....
@seamuslee001
Copy link
Contributor

Change looks fine and should have adequate test coverage here merging

@seamuslee001 seamuslee001 merged commit 6545bbe into civicrm:master Oct 6, 2020
@seamuslee001 seamuslee001 deleted the list2 branch October 6, 2020 06:17
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