From 3550c9f6732c5be4a64f212921e2177ba7f8c4a8 Mon Sep 17 00:00:00 2001 From: Pratik Joshi Date: Wed, 3 Apr 2013 18:11:28 +0530 Subject: [PATCH] CRM-12217 fix : the sixth parameter for getFieldsForImport function was not set to true --- CRM/Core/BAO/UFField.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CRM/Core/BAO/UFField.php b/CRM/Core/BAO/UFField.php index 773a4747e9..7cf4f254fb 100644 --- a/CRM/Core/BAO/UFField.php +++ b/CRM/Core/BAO/UFField.php @@ -865,8 +865,7 @@ SELECT id $subTypes = CRM_Contact_BAO_ContactType::subTypeInfo(); foreach ($subTypes as $name => $val) { //custom fields for sub type - $subTypeFields = CRM_Core_BAO_CustomField::getFieldsForImport($name); - + $subTypeFields = CRM_Core_BAO_CustomField::getFieldsForImport($name, FALSE, FALSE, FALSE, TRUE, TRUE); if (array_key_exists($val['parent'], $fields)) { $fields[$name] = $fields[$val['parent']] + $subTypeFields; } -- 2.25.1