Skip to content
Snippets Groups Projects
Commit 19aac3d2 authored by Angie Byron's avatar Angie Byron
Browse files

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

parent e830c0e0
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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]);
}
}
......
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