-
-
Notifications
You must be signed in to change notification settings - Fork 824
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[REF] Cleanup function for retrieving contact types.
This switches to using the apiv4 as part of trying to eliminate calls to executeQuery where the DAO is passed in like ``` = CRM_Core_DAO::executeQuery(, [], FALSE, 'CRM_Contact_DAO_ContactType' ); ``` Note that this file seems to be the only place this is done. Also note that I added tests first & the changes to the test highlight what is changed in the PR in the output - namely - stricter type casting (courtesy apiv4) - same keys present for all types
- Loading branch information
1 parent
c67d09e
commit ce718f7
Showing
2 changed files
with
84 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters