Merge pull request #16420 from marcusmoore/fixes/report-url

Fixed custom report template route
This commit is contained in:
snipe 2025-03-05 00:11:30 +00:00 committed by GitHub
commit 779330af14
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -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"

View file

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