From 89c7a9d39e6de7a73b22d24b5d3d6842f5209dc9 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 10 Dec 2019 21:56:50 -0500 Subject: [PATCH] Allow angular modules to provide dynamic html snippets --- Civi/Angular/Manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Civi/Angular/Manager.php b/Civi/Angular/Manager.php index cb4c4c86d2..8c759b0ee0 100644 --- a/Civi/Angular/Manager.php +++ b/Civi/Angular/Manager.php @@ -226,7 +226,7 @@ class Manager { */ public function getRawPartials($name) { $module = $this->getModule($name); - $result = []; + $result = $module['snippets'] ?? []; if (isset($module['partials'])) { foreach ($module['partials'] as $partialDir) { $partialDir = $this->res->getPath($module['ext']) . '/' . $partialDir; -- 2.25.1