From 224b94cc39e1ba393d8934323d0ad953ea82d64c Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 6 Jul 2019 21:12:26 -0400 Subject: [PATCH] Use function to get contactTypes instead of hardcoded list --- CRM/Core/BAO/Mapping.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/BAO/Mapping.php b/CRM/Core/BAO/Mapping.php index a171aaeffc..20155af993 100644 --- a/CRM/Core/BAO/Mapping.php +++ b/CRM/Core/BAO/Mapping.php @@ -751,7 +751,7 @@ class CRM_Core_BAO_Mapping extends CRM_Core_DAO_Mapping { * @return array */ public static function getBasicFields($mappingType) { - $contactTypes = ['Individual', 'Household', 'Organization']; + $contactTypes = CRM_Contact_BAO_ContactType::basicTypes(); $fields = []; foreach ($contactTypes as $contactType) { if ($mappingType == 'Search Builder') { -- 2.25.1