Skip to content
Snippets Groups Projects
Commit 6261c4ca authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #246261 by pwolanin: simpletest does not handle optgroup correctly

parent fadcc4f9
No related branches found
No related tags found
No related merge requests found
......@@ -1107,7 +1107,9 @@ private function getAllOptions(SimpleXMLElement $element) {
// Search option group children.
if (isset($element->optgroup)) {
$options = array_merge($options, $this->getAllOptions($element->optgroup));
foreach ($element->optgroup as $group) {
$options = array_merge($options, $this->getAllOptions($group));
}
}
return $options;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment