Skip to content

Commit 88650a3

Browse files
authored
Merge pull request #2510 from Laravel-Backpack/fix-browse-multiple-elfinder-mimes
fix browse_multiple field data-only-mimes
2 parents 6d0e6f8 + 6b9119b commit 88650a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resources/views/crud/fields/browse_multiple.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
$field['wrapperAttributes']['data-popup-title'] = trans('backpack::crud.select_file');
1919
$field['wrapperAttributes']['data-multiple'] = "false";
2020
}
21-
$field['wrapperAttributes']['data-only-mimes'] = json_encode($mimes ?? []);
21+
$field['wrapperAttributes']['data-only-mimes'] = json_encode($field['mime_types'] ?? []);
2222
2323
if($sortable){
2424
$field['wrapperAttributes']['sortable'] = "true";

0 commit comments

Comments
 (0)