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

Fix backward-compatability for new method in CRM_Contact_BAO_Query_Hook #22938

Merged
merged 1 commit into from
Mar 13, 2022

Conversation

colemanw
Copy link
Member

Overview

Backports #22933 to 5.47

Technical Details

The method getDefaultReturnProperties was just added to CRM_Contact_BAO_Query_Hook,
but some extensions do not yet implement it, and also do not extend that class so
cannot inherit the default method.

This adds a guard around calling the new method to avoid crashes.

The method getDefaultReturnProperties was just added to CRM_Contact_BAO_Query_Hook,
but some extensions do not yet implement it, and also do not extend that class so
cannot inherit the default method.

This adds a guard around calling the new method to avoid crashes.
@civibot
Copy link

civibot bot commented Mar 13, 2022

(Standard links)

@civibot civibot bot added the 5.47 label Mar 13, 2022
@demeritcowboy demeritcowboy merged commit 59b21b1 into civicrm:5.47 Mar 13, 2022
@totten totten deleted the backportFixQueryHook branch March 17, 2022 04:48
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