From d065fe61a3848326f3ae41d703e4d3af5fcd7ed4 Mon Sep 17 00:00:00 2001 From: Matheus Zych Date: Mon, 12 Jan 2026 07:51:21 +0100 Subject: [PATCH] Fixes issue with reporting_date when importing setting template --- .../Test/src/Settings/ScoreReporting/SettingsResultSummary.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ILIAS/Test/src/Settings/ScoreReporting/SettingsResultSummary.php b/components/ILIAS/Test/src/Settings/ScoreReporting/SettingsResultSummary.php index 58d3cd141592..be067e6d41a9 100755 --- a/components/ILIAS/Test/src/Settings/ScoreReporting/SettingsResultSummary.php +++ b/components/ILIAS/Test/src/Settings/ScoreReporting/SettingsResultSummary.php @@ -293,7 +293,7 @@ public static function fromExport(array $data): static { return (new self()) ->withScoreReporting(ScoreReportingTypes::from($data['score_reporting'])) - ->withReportingDate($data['reporting_date'] !== 0 ? new \DateTimeImmutable($data['reporting_date']) : null) + ->withReportingDate($data['reporting_date'] ? new \DateTimeImmutable($data['reporting_date']) : null) ->withShowGradingStatusEnabled((bool) $data['show_grading_status']) ->withShowGradingMarkEnabled((bool) $data['show_grading_mark']) ->withShowPassDetails((bool) $data['show_pass_details'])