Skip to content

Commit b8265d5

Browse files
committed
Improve comment
1 parent 0e3efdf commit b8265d5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/Http/Controllers/ReportsController.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,11 +398,12 @@ public function getCustomReport(Request $request) : View
398398
$this->authorize('reports.view');
399399
$customfields = CustomField::get();
400400
$report_templates = ReportTemplate::orderBy('name')->get();
401-
// view needs template to render correctly, even if it is empty...
401+
402+
// The view needs a template to render correctly, even if it is empty...
402403
$template = new ReportTemplate;
403404

404-
// Set the report's input values if we were redirected back with
405-
// validation errors so the report is populated as expected.
405+
// Set the report's input values in the cases we were redirected back
406+
// with validation errors so the report is populated as expected.
406407
if ($request->old()) {
407408
$template->name = $request->old('name');
408409
$template->options = $request->old();

0 commit comments

Comments
 (0)