mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-01 21:19:11 -06:00
Fix #3879
This commit is contained in:
parent
c01345468d
commit
8767bad61e
@ -194,10 +194,7 @@ trait RenderPartialViews
|
||||
$categoryRepository = app(CategoryRepositoryInterface::class);
|
||||
$category = $categoryRepository->findNull((int) $attributes['categoryId']);
|
||||
$journals = $popupHelper->byCategory($category, $attributes);
|
||||
if (null === $category) {
|
||||
return 'This is an unknown category. Apologies.';
|
||||
}
|
||||
// @codeCoverageIgnoreStart
|
||||
|
||||
try {
|
||||
$view = view('popup.report.category-entry', compact('journals', 'category'))->render();
|
||||
} catch (Throwable $e) {
|
||||
@ -205,8 +202,6 @@ trait RenderPartialViews
|
||||
$view = 'Firefly III could not render the view. Please see the log files.';
|
||||
}
|
||||
|
||||
// @codeCoverageIgnoreEnd
|
||||
|
||||
return $view;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user