From 1787c8cd515f47792b5045e2f80816ee409df5f7 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 26 Nov 2019 09:39:23 -0500 Subject: [PATCH] Use canonical name in api.afform.get Names were being munged in the api which led to a mismatch between filenames and afform names. --- ext/afform/core/CRM/Afform/AfformScanner.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/afform/core/CRM/Afform/AfformScanner.php b/ext/afform/core/CRM/Afform/AfformScanner.php index f7ba60a704..d4a2bef678 100644 --- a/ext/afform/core/CRM/Afform/AfformScanner.php +++ b/ext/afform/core/CRM/Afform/AfformScanner.php @@ -194,7 +194,7 @@ class CRM_Afform_AfformScanner { foreach ($files as $file) { $fileBase = preg_replace(self::FILE_REGEXP, '', $file); - $name = _afform_angular_module_name(basename($fileBase)); + $name = basename($fileBase); $formPaths[$name][$priority] = $fileBase; ksort($formPaths[$name]); } -- 2.25.1