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

Website api - fix nonstandard BAO delete method #11625

Merged
merged 2 commits into from
Feb 4, 2018

Conversation

colemanw
Copy link
Member

@colemanw colemanw commented Feb 3, 2018

Overview

Fix oddball BAO del function.

Before

Function did not conform to standards and hooks were not called when deleting a website.

After

Hooks are called when deleting a website. The BAO function follows conventions so the api can use it.

Technical Details

This function was only called from one place. Even the api3 was not using it. So changing the function signature seems safe.

@colemanw
Copy link
Member Author

colemanw commented Feb 4, 2018

@eileenmcnaughton IMO this signature change is safe because of the obscurity of the function. Your thoughts?

@eileenmcnaughton
Copy link
Contributor

@colemanw I think your analysis is correct. I searched through the code & could not find other places calling it. I think it is reasonable to assume that no extensions would call this given there is an api function & has been for many years. Nice to see another CRM_Core_DAO::$_nullArray gone...

@eileenmcnaughton eileenmcnaughton merged commit fe4c784 into civicrm:master Feb 4, 2018
@eileenmcnaughton eileenmcnaughton deleted the Website branch February 4, 2018 22:45
@mlutfy mlutfy added this to the 4.7.31 milestone Feb 9, 2018
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.

4 participants