From bcd86f7ae932d5b2cb320c9332391f381c3dafab Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 13 Apr 2017 11:46:07 -0600 Subject: [PATCH] Fix bug where some elements would not be returned if a child of a later sibling was the same type --- api/src/Etemplate/Widget.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Etemplate/Widget.php b/api/src/Etemplate/Widget.php index f9ba0dd6c8..c19d6eca16 100644 --- a/api/src/Etemplate/Widget.php +++ b/api/src/Etemplate/Widget.php @@ -467,7 +467,7 @@ class Widget { $elements[] = $child; } - $elements += $child->getElementsByType($type); + $elements = array_merge($elements, $child->getElementsByType($type)); } return $elements; }