Skip to content

Commit 5ba94c6

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents 9fa855c + 779330a commit 5ba94c6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

resources/views/reports/custom.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
<form
3939
method="POST"
40-
action="{{ request()->routeIs('report-templates.edit') ? route('report-templates.update', $template) : '/reports/custom' }}"
40+
action="{{ request()->routeIs('report-templates.edit') ? route('report-templates.update', $template) : route('reports.post-custom') }}"
4141
accept-charset="UTF-8"
4242
class="form-horizontal"
4343
id="custom-report-form"

routes/web.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,8 @@
532532
$trail->parent('home')
533533
->push(trans('general.custom_report'), route('reports/custom')));
534534

535-
Route::post('custom', [ReportsController::class, 'postCustom']);
535+
Route::post('custom', [ReportsController::class, 'postCustom'])
536+
->name('reports.post-custom');
536537

537538

538539
Route::prefix('templates')

0 commit comments

Comments
 (0)