Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
ro
9fa7fc6554 csv export missing file extension
small patch to add missing file extension to the csv exports. oops.
2025-07-28 16:44:36 -06:00

View file

@ -30,10 +30,13 @@ class ExportController extends Controller
}
array_push($list, ["heatRating" => $rating, "ratingCount" => $count]);
}
return view('front.exports', [
'title' => "Exports",
'list' => $list
]);
return view(
'front.exports',
[
'title' => "Exports",
'list' => $list
]
);
}
//
@ -77,7 +80,7 @@ class ExportController extends Controller
}
header('Content-Type: text/csv');
header('Content-Disposition: attachment; filename=' . $type . "-" . $percent);
header('Content-Disposition: attachment; filename=' . $type . "-" . $percent . ".csv");
echo implode(',', $columns) . PHP_EOL;
foreach ($list as $item) {