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#1433 - Replace last instances of calls to CRM_Case_XMLProcessor::allActivityTypes() #17616

Merged
merged 2 commits into from
Jun 15, 2020

Conversation

demeritcowboy
Copy link
Contributor

@demeritcowboy demeritcowboy commented Jun 15, 2020

Overview

https://lab.civicrm.org/dev/core/-/issues/1433

Follow on from #17614. These are the last instances.

Technical Details

Function doesn't do caching right, but it's just a wrapper around a function that does, so call that function instead.

Also the & isn't needed in createActivity() since the variable is never updated.

Comments

The added test is for something unrelated because there's already good test coverage for createActivity(), and that gets called every time you create a case with a timeline. And there's some coverage already for populateCaseReportTemplate in CRM_Case_XMLProcessor_ReportTest.

@civibot
Copy link

civibot bot commented Jun 15, 2020

(Standard links)

@civibot civibot bot added the master label Jun 15, 2020
@demeritcowboy demeritcowboy changed the title WIP dev/core#1433 - Replace last instances of calls to CRM_Case_XMLProcessor::allActivityTypes() Jun 15, 2020
@eileenmcnaughton eileenmcnaughton merged commit bd5f58a into civicrm:master Jun 15, 2020
@demeritcowboy demeritcowboy deleted the xml-acttype-more-more branch June 15, 2020 23:35
@demeritcowboy
Copy link
Contributor Author

Thanks!

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