From f2112923e94c5c6d15104a59ad539b5389493c1d Mon Sep 17 00:00:00 2001 From: Andrew Horth Date: Fri, 22 Sep 2023 13:53:53 +0100 Subject: [PATCH] Fixed temporary hack to show current alerts in previous ection too! --- .../Pages/Persons/PersonDetail/Alerts.cshtml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.SupportUi/Pages/Persons/PersonDetail/Alerts.cshtml.cs b/TeachingRecordSystem/src/TeachingRecordSystem.SupportUi/Pages/Persons/PersonDetail/Alerts.cshtml.cs index 6909e40a7..d75c97de6 100644 --- a/TeachingRecordSystem/src/TeachingRecordSystem.SupportUi/Pages/Persons/PersonDetail/Alerts.cshtml.cs +++ b/TeachingRecordSystem/src/TeachingRecordSystem.SupportUi/Pages/Persons/PersonDetail/Alerts.cshtml.cs @@ -58,7 +58,7 @@ public async Task OnGet() .ToArray(); PreviousAlerts = allAlerts - .Where(alert => alert.Status == AlertStatus.Active) + .Where(alert => alert.Status != AlertStatus.Active) .OrderBy(a => a.StartDate) .ToArray();