diff --git a/DigitalLearningSolutions.Data.Migrations/202509180915_Alter_SendRetiringSelfAssessmentNotification.cs b/DigitalLearningSolutions.Data.Migrations/202509180915_Alter_SendRetiringSelfAssessmentNotification.cs
new file mode 100644
index 0000000000..8e870cd933
--- /dev/null
+++ b/DigitalLearningSolutions.Data.Migrations/202509180915_Alter_SendRetiringSelfAssessmentNotification.cs
@@ -0,0 +1,19 @@
+
+
+namespace DigitalLearningSolutions.Data.Migrations
+{
+ using FluentMigrator;
+
+ [Migration(202509180915)]
+ public class Alter_SendRetiringSelfAssessmentNotification : Migration
+ {
+ public override void Up()
+ {
+ Execute.Sql(Properties.Resources.TD_5552_Alter_SendRetiringSelfAssessmentNotification_Up);
+ }
+ public override void Down()
+ {
+ Execute.Sql(Properties.Resources.TD_5552_Alter_SendRetiringSelfAssessmentNotification_Down);
+ }
+ }
+}
diff --git a/DigitalLearningSolutions.Data.Migrations/Properties/Resources.Designer.cs b/DigitalLearningSolutions.Data.Migrations/Properties/Resources.Designer.cs
index 5a70756bd6..ec509516b1 100644
--- a/DigitalLearningSolutions.Data.Migrations/Properties/Resources.Designer.cs
+++ b/DigitalLearningSolutions.Data.Migrations/Properties/Resources.Designer.cs
@@ -2564,6 +2564,50 @@ internal static string TD_5535_Alter_GetActivitiesForDelegateEnrolment_Up {
}
}
+ ///
+ /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[SendRetiringSelfAssessmentNotification] Script Date: 18/09/2025 09:03:21 ******/
+ ///SET ANSI_NULLS ON
+ ///GO
+ ///
+ ///SET QUOTED_IDENTIFIER ON
+ ///GO
+ ///
+ ///-- =============================================
+ ///-- Author: Auldrin Possa
+ ///-- Create date: 04/08/2015
+ ///-- Description: Uses DB mail to send notification to delegates on retiring self assessment.
+ ///-- =============================================
+ ///ALTER PROCEDURE [dbo].[SendRetiringSelfAssessmentNotification]
+ /// @SelfAssessmentId [rest of string was truncated]";.
+ ///
+ internal static string TD_5552_Alter_SendRetiringSelfAssessmentNotification_Down {
+ get {
+ return ResourceManager.GetString("TD_5552_Alter_SendRetiringSelfAssessmentNotification_Down", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to /****** Object: StoredProcedure [dbo].[SendRetiringSelfAssessmentNotification] Script Date: 18/09/2025 09:03:21 ******/
+ ///SET ANSI_NULLS ON
+ ///GO
+ ///
+ ///SET QUOTED_IDENTIFIER ON
+ ///GO
+ ///
+ ///-- =============================================
+ ///-- Author: Auldrin Possa
+ ///-- Create date: 04/08/2015
+ ///-- Description: Uses DB mail to send notification to delegates on retiring self assessment.
+ ///-- =============================================
+ ///ALTER PROCEDURE [dbo].[SendRetiringSelfAssessmentNotification]
+ /// @SelfAssessmentId [rest of string was truncated]";.
+ ///
+ internal static string TD_5552_Alter_SendRetiringSelfAssessmentNotification_Up {
+ get {
+ return ResourceManager.GetString("TD_5552_Alter_SendRetiringSelfAssessmentNotification_Up", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to SET ANSI_NULLS ON
///GO
diff --git a/DigitalLearningSolutions.Data.Migrations/Properties/Resources.resx b/DigitalLearningSolutions.Data.Migrations/Properties/Resources.resx
index 138250507c..bb42e0ec70 100644
--- a/DigitalLearningSolutions.Data.Migrations/Properties/Resources.resx
+++ b/DigitalLearningSolutions.Data.Migrations/Properties/Resources.resx
@@ -508,4 +508,10 @@
..\Scripts\TD-5552-SendRetiringNotification.sql;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-16
+
+ ..\Scripts\TD-5552-Alter_SendRetiringSelfAssessmentNotification_Down.sql;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-16
+
+
+ ..\Scripts\TD-5552-Alter_SendRetiringSelfAssessmentNotification_Up.sql;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-16
+
\ No newline at end of file
diff --git a/DigitalLearningSolutions.Data.Migrations/Scripts/TD-5552-Alter_SendRetiringSelfAssessmentNotification_Down.sql b/DigitalLearningSolutions.Data.Migrations/Scripts/TD-5552-Alter_SendRetiringSelfAssessmentNotification_Down.sql
new file mode 100644
index 0000000000..c416e54e50
Binary files /dev/null and b/DigitalLearningSolutions.Data.Migrations/Scripts/TD-5552-Alter_SendRetiringSelfAssessmentNotification_Down.sql differ
diff --git a/DigitalLearningSolutions.Data.Migrations/Scripts/TD-5552-Alter_SendRetiringSelfAssessmentNotification_Up.sql b/DigitalLearningSolutions.Data.Migrations/Scripts/TD-5552-Alter_SendRetiringSelfAssessmentNotification_Up.sql
new file mode 100644
index 0000000000..6ee6c7c21c
Binary files /dev/null and b/DigitalLearningSolutions.Data.Migrations/Scripts/TD-5552-Alter_SendRetiringSelfAssessmentNotification_Up.sql differ
diff --git a/DigitalLearningSolutions.Web/Controllers/SupervisorController/Supervisor.cs b/DigitalLearningSolutions.Web/Controllers/SupervisorController/Supervisor.cs
index 65f5cc298f..5776d27f5b 100644
--- a/DigitalLearningSolutions.Web/Controllers/SupervisorController/Supervisor.cs
+++ b/DigitalLearningSolutions.Web/Controllers/SupervisorController/Supervisor.cs
@@ -910,19 +910,13 @@ public IActionResult EnrolDelegateSetCompleteBy(int supervisorDelegateId, int da
{
var validationResult = OldDateValidator.ValidateDate(day, month, year);
if (!validationResult.DateValid)
- {
return RedirectToAction("EnrolDelegateCompleteBy", new { supervisorDelegateId, day, month, year });
- }
- else
- {
- var completeByDate = new DateTime(year, month, day);
- sessionEnrolOnRoleProfile.CompleteByDate = completeByDate;
- multiPageFormService.SetMultiPageFormData(
- sessionEnrolOnRoleProfile,
- MultiPageFormDataFeature.EnrolDelegateOnProfileAssessment,
- TempData
- );
- }
+
+ sessionEnrolOnRoleProfile.CompleteByDate = new DateTime(year, month, day);
+ }
+ else
+ {
+ sessionEnrolOnRoleProfile.CompleteByDate = null;
}
var supervisorRoles =