From fbb35dad207851fb0c533601891965802010210b Mon Sep 17 00:00:00 2001 From: Auldrin-Possa Date: Thu, 18 Sep 2025 15:34:32 +0100 Subject: [PATCH] TD-6235- MultipageFormData value for CompleteByDate is set to null --- .../SupervisorController/Supervisor.cs | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) 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 =