From 425c9756d010f8658d9518efcf552cf260f70719 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Sun, 15 Sep 2019 15:24:57 -0400 Subject: [PATCH] api4 - Search for entities in core (for realz) --- Civi/Api4/Action/Entity/Get.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Civi/Api4/Action/Entity/Get.php b/Civi/Api4/Action/Entity/Get.php index 4f75909524..47cb6286c7 100644 --- a/Civi/Api4/Action/Entity/Get.php +++ b/Civi/Api4/Action/Entity/Get.php @@ -25,7 +25,7 @@ class Get extends \Civi\Api4\Generic\BasicGetAction { */ protected function getRecords() { $entities = []; - $locations = array_merge([\Civi::paths()->getPath('[civicrm.root]/.')], + $locations = array_merge([\Civi::paths()->getPath('[civicrm.root]/Civi.php')], array_column(\CRM_Extension_System::singleton()->getMapper()->getActiveModuleFiles(), 'filePath') ); foreach ($locations as $location) { -- 2.25.1