This commit is contained in:
James Cole 2021-03-16 17:39:21 +01:00
parent a93da2a912
commit b4d44fdd2b
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D

View File

@ -53,7 +53,7 @@ class MonthReportGenerator implements ReportGeneratorInterface
$reportType = 'default';
try {
return view('reports.default.month', compact('accountIds', 'reportType'))->with('start', $this->start)->with('end', $this->end)->render();
return prefixView('reports.default.month', compact('accountIds', 'reportType'))->with('start', $this->start)->with('end', $this->end)->render();
} catch (Throwable $e) {
Log::error(sprintf('Cannot render reports.default.month: %s', $e->getMessage()));
$result = 'Could not render report view.';