Merge pull request #16420 from marcusmoore/fixes/report-url
Fixed custom report template route
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
|
||||
<form
|
||||
method="POST"
|
||||
action="{{ request()->routeIs('report-templates.edit') ? route('report-templates.update', $template) : '/reports/custom' }}"
|
||||
action="{{ request()->routeIs('report-templates.edit') ? route('report-templates.update', $template) : route('reports.post-custom') }}"
|
||||
accept-charset="UTF-8"
|
||||
class="form-horizontal"
|
||||
id="custom-report-form"
|
||||
|
||||
@@ -532,7 +532,8 @@ Route::group(['prefix' => 'reports', 'middleware' => ['auth']], function () {
|
||||
$trail->parent('home')
|
||||
->push(trans('general.custom_report'), route('reports/custom')));
|
||||
|
||||
Route::post('custom', [ReportsController::class, 'postCustom']);
|
||||
Route::post('custom', [ReportsController::class, 'postCustom'])
|
||||
->name('reports.post-custom');
|
||||
|
||||
|
||||
Route::prefix('templates')
|
||||
|
||||
Reference in New Issue
Block a user