Include subtypes if passed to avoid 61 join limit for Mysql on Custom groups
authorPradeep Nayak <pradpnayak@gmail.com>
Fri, 21 Apr 2023 11:59:31 +0000 (12:59 +0100)
committerPradeep Nayak <pradpnayak@gmail.com>
Fri, 21 Apr 2023 11:59:31 +0000 (12:59 +0100)
api/v3/utils.php

index 11507b7c0aa2ccbecca8cc4c8fdfdb050e8742dc..aaf363636c45c8bc75cc249e7a2017400032e615 100644 (file)
@@ -1417,7 +1417,7 @@ function _civicrm_api3_custom_data_get(&$returnArray, $checkPermission, $entity,
     NULL,
     $entity_id,
     $groupID,
-    NULL,
+    $subType,
     $subName,
     TRUE,
     NULL,