Skip to content

Commit 90e8d22

Browse files
authored
Merge pull request #3378 from TechnologyEnhancedLearning/DLS-Release-v1.2.3
Dls release v1.2.3 to UAT
2 parents 3fcf7ba + cc67ddf commit 90e8d22

File tree

6 files changed

+75
-12
lines changed

6 files changed

+75
-12
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+

2+
3+
namespace DigitalLearningSolutions.Data.Migrations
4+
{
5+
using FluentMigrator;
6+
7+
[Migration(202509180915)]
8+
public class Alter_SendRetiringSelfAssessmentNotification : Migration
9+
{
10+
public override void Up()
11+
{
12+
Execute.Sql(Properties.Resources.TD_5552_Alter_SendRetiringSelfAssessmentNotification_Up);
13+
}
14+
public override void Down()
15+
{
16+
Execute.Sql(Properties.Resources.TD_5552_Alter_SendRetiringSelfAssessmentNotification_Down);
17+
}
18+
}
19+
}

DigitalLearningSolutions.Data.Migrations/Properties/Resources.Designer.cs

Lines changed: 44 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DigitalLearningSolutions.Data.Migrations/Properties/Resources.resx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,4 +508,10 @@
508508
<data name="TD_5552_SendRetiringNotification" type="System.Resources.ResXFileRef, System.Windows.Forms">
509509
<value>..\Scripts\TD-5552-SendRetiringNotification.sql;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-16</value>
510510
</data>
511+
<data name="TD_5552_Alter_SendRetiringSelfAssessmentNotification_Down" type="System.Resources.ResXFileRef, System.Windows.Forms">
512+
<value>..\Scripts\TD-5552-Alter_SendRetiringSelfAssessmentNotification_Down.sql;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-16</value>
513+
</data>
514+
<data name="TD_5552_Alter_SendRetiringSelfAssessmentNotification_Up" type="System.Resources.ResXFileRef, System.Windows.Forms">
515+
<value>..\Scripts\TD-5552-Alter_SendRetiringSelfAssessmentNotification_Up.sql;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-16</value>
516+
</data>
511517
</root>

DigitalLearningSolutions.Web/Controllers/SupervisorController/Supervisor.cs

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -910,19 +910,13 @@ public IActionResult EnrolDelegateSetCompleteBy(int supervisorDelegateId, int da
910910
{
911911
var validationResult = OldDateValidator.ValidateDate(day, month, year);
912912
if (!validationResult.DateValid)
913-
{
914913
return RedirectToAction("EnrolDelegateCompleteBy", new { supervisorDelegateId, day, month, year });
915-
}
916-
else
917-
{
918-
var completeByDate = new DateTime(year, month, day);
919-
sessionEnrolOnRoleProfile.CompleteByDate = completeByDate;
920-
multiPageFormService.SetMultiPageFormData(
921-
sessionEnrolOnRoleProfile,
922-
MultiPageFormDataFeature.EnrolDelegateOnProfileAssessment,
923-
TempData
924-
);
925-
}
914+
915+
sessionEnrolOnRoleProfile.CompleteByDate = new DateTime(year, month, day);
916+
}
917+
else
918+
{
919+
sessionEnrolOnRoleProfile.CompleteByDate = null;
926920
}
927921

928922
var supervisorRoles =

0 commit comments

Comments
 (0)