upgrades core to 8.4.2
This commit is contained in:
@@ -1208,7 +1208,9 @@ function file_managed_file_save_upload($element, FormStateInterface $form_state)
|
||||
|
||||
// Value callback expects FIDs to be keys.
|
||||
$files = array_filter($files);
|
||||
$fids = array_map(function($file) { return $file->id(); }, $files);
|
||||
$fids = array_map(function ($file) {
|
||||
return $file->id();
|
||||
}, $files);
|
||||
|
||||
return empty($files) ? [] : array_combine($fids, $files);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user