Commit 19aac3d2 authored by webchick's avatar webchick

#932426 by duellj: Fix second file uploaded is displayed when display option is unchecked.

parent e830c0e0
......@@ -203,9 +203,9 @@ function file_field_prepare_view($entity_type, $entities, $field, $instances, $l
if (!file_field_displayed($item, $field)) {
unset($items[$id][$delta]);
}
// Ensure consecutive deltas.
$items[$id] = array_values($items[$id]);
}
// Ensure consecutive deltas.
$items[$id] = array_values($items[$id]);
}
}
......
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