Commit 9e7170dc authored by totten's avatar totten
Browse files

Afform.get - Fix warning/test-failure when trying to load non-existent record

parent 0c73e8d9
......@@ -19,7 +19,9 @@ class Get extends \Civi\Api4\Generic\BasicGetAction {
$values = [];
foreach ($names as $name) {
$record = $scanner->getMeta($name);
$record = array_merge($record, $scanner->getComputedFields($name));
if ($record) {
$record = array_merge($record, $scanner->getComputedFields($name));
}
$layout = $this->_isFieldSelected('layout') ? $scanner->getLayout($name) : NULL;
if ($layout !== NULL) {
// FIXME check for validity?
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment