mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-06 12:45:30 +00:00
Some code cleanup for #1272
This commit is contained in:
@@ -325,25 +325,25 @@ class ReportController extends Controller
|
||||
|
||||
if (0 === $request->getAccountList()->count()) {
|
||||
Log::debug('Account count is zero');
|
||||
Session::flash('error', trans('firefly.select_more_than_one_account'));
|
||||
session()->flash('error', trans('firefly.select_more_than_one_account'));
|
||||
|
||||
return redirect(route('reports.index'));
|
||||
}
|
||||
|
||||
if (0 === $request->getCategoryList()->count() && 'category' === $reportType) {
|
||||
Session::flash('error', trans('firefly.select_more_than_one_category'));
|
||||
session()->flash('error', trans('firefly.select_more_than_one_category'));
|
||||
|
||||
return redirect(route('reports.index'));
|
||||
}
|
||||
|
||||
if (0 === $request->getBudgetList()->count() && 'budget' === $reportType) {
|
||||
Session::flash('error', trans('firefly.select_more_than_one_budget'));
|
||||
session()->flash('error', trans('firefly.select_more_than_one_budget'));
|
||||
|
||||
return redirect(route('reports.index'));
|
||||
}
|
||||
|
||||
if (0 === $request->getTagList()->count() && 'tag' === $reportType) {
|
||||
Session::flash('error', trans('firefly.select_more_than_one_tag'));
|
||||
session()->flash('error', trans('firefly.select_more_than_one_tag'));
|
||||
|
||||
return redirect(route('reports.index'));
|
||||
}
|
||||
|
Reference in New Issue
Block a user