This commit is contained in:
James Cole 2016-11-28 19:45:36 +01:00
parent 885d0f1464
commit f0fd5324ea
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
2 changed files with 7 additions and 0 deletions

View File

@ -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'));
}

View File

@ -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',