Skip to content
Snippets Groups Projects
Commit e3c84dc8 authored by José de Leon's avatar José de Leon
Browse files

fix:Allow realpath and getFileUri calls

parent 190436f0
No related branches found
No related tags found
1 merge request!17fix:Allow realpath and getFileUri calls
......@@ -526,7 +526,7 @@ class CSVFileFormatter extends FileFormatterBase {
}
// Render HTML table from CSV file.
$file_name = $file->getFileUri();
$file_name = $this->getFileSystem()->realpath($file->get('uri')->value) ?? $file->getFileUri();
$table_data = $this->readcsv($file_name, $field_name . '-' . $item_count, $item->getEntity()->id(), $item->description);
$elements[$delta][$elemcount] = $table_data;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment