mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
Improve comment
This commit is contained in:
parent
0e3efdfe87
commit
b8265d54bb
|
@ -398,11 +398,12 @@ class ReportsController extends Controller
|
|||
$this->authorize('reports.view');
|
||||
$customfields = CustomField::get();
|
||||
$report_templates = ReportTemplate::orderBy('name')->get();
|
||||
// view needs template to render correctly, even if it is empty...
|
||||
|
||||
// The view needs a template to render correctly, even if it is empty...
|
||||
$template = new ReportTemplate;
|
||||
|
||||
// Set the report's input values if we were redirected back with
|
||||
// validation errors so the report is populated as expected.
|
||||
// Set the report's input values in the cases we were redirected back
|
||||
// with validation errors so the report is populated as expected.
|
||||
if ($request->old()) {
|
||||
$template->name = $request->old('name');
|
||||
$template->options = $request->old();
|
||||
|
|
Loading…
Reference in a new issue