From 1b62f7239f180eeb911eb6dbe0dd17ccb728ba4e Mon Sep 17 00:00:00 2001 From: yashodha Date: Thu, 24 Dec 2020 16:36:07 +0530 Subject: [PATCH] (dev/core#2273) Contact type incorrectly set to Contribution due to 'Honoree Profile' --- CRM/Contact/BAO/Contact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contact/BAO/Contact.php b/CRM/Contact/BAO/Contact.php index 9eecd8fa74..5e45300933 100644 --- a/CRM/Contact/BAO/Contact.php +++ b/CRM/Contact/BAO/Contact.php @@ -2066,7 +2066,7 @@ ORDER BY civicrm_email.is_primary DESC"; else { //we should get contact type only if contact if ($ufGroupId) { - $data['contact_type'] = CRM_Core_BAO_UFField::getProfileType($ufGroupId); + $data['contact_type'] = CRM_Core_BAO_UFField::getProfileType($ufGroupId,TRUE, FALSE, TRUE); //special case to handle profile with only contact fields if ($data['contact_type'] == 'Contact') { -- 2.25.1