mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fixes #417
This commit is contained in:
parent
885d0f1464
commit
f0fd5324ea
@ -227,6 +227,12 @@ class ReportController extends Controller
|
||||
return redirect(route('reports.index'));
|
||||
}
|
||||
|
||||
if ($request->getCategoryList()->count() === 0 && $reportType === 'category') {
|
||||
Session::flash('error', trans('firefly.select_more_than_one_category'));
|
||||
|
||||
return redirect(route('reports.index'));
|
||||
}
|
||||
|
||||
if ($end < $start) {
|
||||
return view('error')->with('message', trans('firefly.end_after_start_date'));
|
||||
}
|
||||
|
@ -524,6 +524,7 @@ return [
|
||||
'no_transactions_account' => 'There are no transactions (in this period) for asset account ":name".',
|
||||
'no_data_for_chart' => 'There is not enough information (yet) to generate this chart.',
|
||||
'select_more_than_one_account' => 'Please select more than one account',
|
||||
'select_more_than_one_category' => 'Please select more than one category',
|
||||
|
||||
// categories:
|
||||
'new_category' => 'New category',
|
||||
|
Loading…
Reference in New Issue
Block a user