Skip to content

Commit 6054cf8

Browse files
author
Timm Ortloff
committed
ReportController: Use fromReport to construct the ScheduleForm in scheduleAction()
1 parent 1036e90 commit 6054cf8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

application/controllers/ReportController.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,7 @@ public function scheduleAction()
9999
$this->assertPermission('reporting/schedules');
100100
$this->addTitleTab('Schedule');
101101

102-
$form = new ScheduleForm();
103-
$form
104-
->setReport($this->report)
102+
$form = ScheduleForm::fromReport($this->report)
105103
->handleRequest(ServerRequest::fromGlobals());
106104

107105
$this->redirectForm($form, "reporting/report?id={$this->report->getId()}");

0 commit comments

Comments
 (0)