From 23c2d07c7d03e81ce9ecac2976e48f8f63daac03 Mon Sep 17 00:00:00 2001 From: colemanw Date: Sun, 15 Sep 2019 10:23:27 -0400 Subject: [PATCH] Search for entity-specific actions in core --- Civi/Api4/Action/GetActions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Civi/Api4/Action/GetActions.php b/Civi/Api4/Action/GetActions.php index 67da925b86..40d148014a 100644 --- a/Civi/Api4/Action/GetActions.php +++ b/Civi/Api4/Action/GetActions.php @@ -27,11 +27,13 @@ class GetActions extends BasicGetAction { } } if (!$this->_actionsToGet || count($this->_actionsToGet) > count($this->_actions)) { - // Search entity-specific actions (including those provided by extensions) + // Search for entity-specific actions in extensions foreach (\CRM_Extension_System::singleton()->getMapper()->getActiveModuleFiles() as $ext) { $dir = \CRM_Utils_File::addTrailingSlash(dirname($ext['filePath'])); $this->scanDir($dir . 'Civi/Api4/Action/' . $this->_entityName); } + // Search for entity-specific actions in core + $this->scanDir(\CRM_Utils_File::addTrailingSlash(__DIR__) . $this->_entityName); } ksort($this->_actions); return $this->_actions; -- 2.25.1