Commit 74e0d638 authored by catch's avatar catch

Issue #2342227 by martin107: Fixed untraversable for loop in DisplayFeedTest().

parent 8dd60810
......@@ -58,8 +58,8 @@ protected function checkFeedViewUi($view_name) {
// Load all the options of the checkbox.
$result = $this->xpath('//div[@id="edit-displays"]/div');
$options = array();
foreach ($result as $value) {
foreach ($value->input->attributes() as $attribute => $value) {
foreach ($result as $item) {
foreach ($item->input->attributes() as $attribute => $value) {
if ($attribute == 'value') {
$options[] = (string) $value;
}
......
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