From 39cb3d7b0f94f35675fb8fb21b33ccb497725850 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 30 Oct 2014 14:55:20 -0400 Subject: [PATCH] CRM-15534 - Fix api.getfields to return custom fields from sub-types --- api/v3/utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v3/utils.php b/api/v3/utils.php index 2f6a105deb..aec042463e 100644 --- a/api/v3/utils.php +++ b/api/v3/utils.php @@ -1651,7 +1651,7 @@ function _civicrm_api_get_custom_fields($entity, &$params) { $customfields = CRM_Core_BAO_CustomField::getFields($entity, FALSE, FALSE, - CRM_Utils_Array::value('contact_sub_type', $params, FALSE), + CRM_Utils_Array::value('contact_sub_type', $params), NULL, $retrieveOnlyParent, FALSE, -- 2.25.1