Use non-deprecated methd
authoreileen <emcnaughton@wikimedia.org>
Thu, 21 May 2020 02:25:02 +0000 (14:25 +1200)
committereileen <emcnaughton@wikimedia.org>
Thu, 21 May 2020 02:25:02 +0000 (14:25 +1200)
api/v3/Generic/Getlist.php

index 2fecc84c4fcf6dc820d2135510136bf840acabc7..f63948e27c2ce66b5e673aeb281d549dabbb2185 100644 (file)
@@ -22,7 +22,7 @@
  * @throws \CiviCRM_API3_Exception
  */
 function civicrm_api3_generic_getList($apiRequest) {
-  $entity = _civicrm_api_get_entity_name_from_camel($apiRequest['entity']);
+  $entity = CRM_Core_DAO_AllCoreTables::convertEntityNameToLower($apiRequest['entity']);
   $request = $apiRequest['params'];
   $meta = civicrm_api3_generic_getfields(['action' => 'get'] + $apiRequest, FALSE);