diff options
-rw-r--r-- | modules/simpletest/drupal_web_test_case.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php index ae8121880..626f7383b 100644 --- a/modules/simpletest/drupal_web_test_case.php +++ b/modules/simpletest/drupal_web_test_case.php @@ -1107,7 +1107,9 @@ class DrupalWebTestCase { // 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; } |