Skip to content

Commit

Permalink
Merge branch 'fix_61'
Browse files Browse the repository at this point in the history
  • Loading branch information
KatjaGlassConsulting committed Oct 7, 2024
2 parents 2ce2640 + 36da400 commit f104784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Controller/WeekReportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function weekByUser(Request $request): Response

return $this->render('@Approval/report_by_user.html.twig', [
'approve' => $this->parseToHistoryView($selectedUser, $startWeek),
'week' => $this->formatting->parseDate(new DateTime($startWeek)),
'week' => $this->formatting->parseDate($startWeek instanceof DateTime ? $startWeek : new DateTime($startWeek)),
'box_id' => 'user-week-report-box',
'form' => $form->createView(),
'days' => new DailyStatistic($start, $end, $selectedUser),
Expand Down

0 comments on commit f104784

Please sign in to comment.