From: Coleman Watts Date: Sat, 25 Sep 2021 00:13:54 +0000 (-0400) Subject: Afform - fix loading embedded blocks X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a4630f3b9d3ee11485f0ba3613af0e0bd658f153;p=civicrm-core.git Afform - fix loading embedded blocks --- 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)