mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Merge pull request #16420 from marcusmoore/fixes/report-url
Fixed custom report template route
This commit is contained in:
commit
779330af14
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue