From a4630f3b9d3ee11485f0ba3613af0e0bd658f153 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 24 Sep 2021 20:13:54 -0400 Subject: [PATCH] Afform - fix loading embedded blocks --- ext/afform/admin/Civi/Api4/Action/Afform/LoadAdminData.php | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/afform/admin/Civi/Api4/Action/Afform/LoadAdminData.php b/ext/afform/admin/Civi/Api4/Action/Afform/LoadAdminData.php index 2724c2a349..81ed486a81 100644 --- a/ext/afform/admin/Civi/Api4/Action/Afform/LoadAdminData.php +++ b/ext/afform/admin/Civi/Api4/Action/Afform/LoadAdminData.php @@ -116,6 +116,7 @@ class LoadAdminData extends \Civi\Api4\Generic\AbstractAction { if (!isset($info['blocks'][$blockTag])) { // Load full contents of block used on the form, then recurse into it $embeddedForm = Afform::get($this->checkPermissions) + ->addSelect('*', 'directive_name') ->setFormatWhitespace(TRUE) ->setLayoutFormat('shallow') ->addWhere('directive_name', '=', $blockTag) -- 2.25.1