CRM-15534 - Fix api.getfields to return custom fields from sub-types
authorColeman Watts <coleman@civicrm.org>
Thu, 30 Oct 2014 18:55:20 +0000 (14:55 -0400)
committerColeman Watts <coleman@civicrm.org>
Thu, 30 Oct 2014 18:55:20 +0000 (14:55 -0400)
api/v3/utils.php

index 2f6a105deb517efbc3ffac0d75795a73f1d79788..aec042463e5b555e6b55054bb452f2c55b7a7da2 100644 (file)
@@ -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,