Call to bad function breaks several reports, fix #4547

This commit is contained in:
James Cole 2021-03-28 20:42:03 +02:00
parent 3586c76b95
commit a243f3d7c2
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D
3 changed files with 22 additions and 3 deletions

View File

@ -76,7 +76,7 @@ class MonthReportGenerator implements ReportGeneratorInterface
// render!
try {
return view('reports.category.month', compact('accountIds', 'categoryIds', 'reportType',))
return prefixView('reports.category.month', compact('accountIds', 'categoryIds', 'reportType',))
->with('start', $this->start)->with('end', $this->end)
->with('categories', $this->categories)
->with('accounts', $this->accounts)

View File

@ -54,7 +54,7 @@ class MultiYearReportGenerator implements ReportGeneratorInterface
$reportType = 'default';
try {
return view(
return prefixView(
'reports.default.multi-year',
compact('accountIds', 'reportType')
)->with('start', $this->start)->with('end', $this->end)->render();

View File

@ -4,7 +4,26 @@ This project adheres to [Semantic Versioning](http://semver.org/).
## Unreleased
- No unreleased changes.
### Added
- Initial release.
### Changed
- Initial release.
### Deprecated
- Initial release.
### Removed
- Initial release.
### Fixed
- #4547 Call to bad function breaks several reports
### Security
- Initial release.
### API
- Initial release
## 5.5.0 (API 1.5.0) 2021-03-27