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

Don't pass empty ids parameter, fix fatal #17086

Merged
merged 1 commit into from
Apr 17, 2020

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Apr 16, 2020

Overview

$ids is an optional parameter in Membership::create - we should not pass it if it has no meaning

Also -replace fatal with an exception

Before


        $ids = [];
        CRM_Member_BAO_Membership::create($params, $ids);

After

 CRM_Member_BAO_Membership::create($params);

Technical Details

There is no other reference to $ids in the changed function

Comments

@civibot
Copy link

civibot bot commented Apr 16, 2020

(Standard links)

@civibot civibot bot added the master label Apr 16, 2020
@yashodha
Copy link
Contributor

@eileenmcnaughton looks good to me, ready to merge.

@eileenmcnaughton
Copy link
Contributor Author

Thanks @yashodha @mattwire

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.

3 participants