Skip to content
Snippets Groups Projects
Unverified Commit 8b59113e authored by Seamus Lee's avatar Seamus Lee Committed by GitHub
Browse files

Merge pull request #21345 from seamuslee001/fix_afform_test

[NFC] Fix E-notice in Afform unit tests
parents ef4563cb a003d5f7
Branches
Tags
No related merge requests found
......@@ -56,7 +56,7 @@ class Get extends \Civi\Api4\Generic\BasicGetAction {
// Skip if afform does not exist or is not of requested type(s)
if (
(!$record && !isset($values[$name])) ||
($getTypes && !in_array($record['type'], $getTypes, TRUE))
($getTypes && isset($record['type']) && !in_array($record['type'], $getTypes, TRUE))
) {
continue;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment