Switch should have default thing.

This commit is contained in:
James Cole
2020-10-03 17:53:23 +02:00
parent b8e36b0398
commit 61ffc8ada6
7 changed files with 16 additions and 4 deletions

View File

@@ -384,12 +384,13 @@ class ReportController extends Controller
}
switch ($reportType) {
case 'category':
$uri = route('reports.report.category', [$accounts, $categories, $start, $end]);
break;
default:
case 'default':
$uri = route('reports.report.default', [$accounts, $start, $end]);
break;
case 'category':
$uri = route('reports.report.category', [$accounts, $categories, $start, $end]);
break;
case 'audit':
$uri = route('reports.report.audit', [$accounts, $start, $end]);
break;