Commit 6261c4ca authored by Dries's avatar Dries
Browse files

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

parent fadcc4f9
......@@ -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;
}
......
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