diff --git a/core/modules/file/file.field.inc b/core/modules/file/file.field.inc index f09760f..661237e 100644 --- a/core/modules/file/file.field.inc +++ b/core/modules/file/file.field.inc @@ -81,8 +81,8 @@ function template_preprocess_file_widget_multiple(&$variables) { $operations_elements = array(); foreach (Element::children($widget) as $sub_key) { if (isset($widget[$sub_key]['#type']) && $widget[$sub_key]['#type'] == 'submit') { + $operations_elements[] = $widget[$sub_key]; hide($widget[$sub_key]); - $operations_elements[] = &$widget[$sub_key]; } }