Skip to content

Commit 3fcf7ba

Browse files
authored
Merge pull request #3375 from TechnologyEnhancedLearning/DLS-Release-v1.2.3
Dls release v1.2.3 to UAT
2 parents cdc19f3 + dc35e72 commit 3fcf7ba

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

DigitalLearningSolutions.Data/DataServices/SelfAssessmentDataService/CandidateAssessmentsDataService.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,11 +513,13 @@ public IEnumerable<Accessor> GetAccessor(int selfAssessmentId, int delegateUserI
513513
{
514514
return connection.Query<Accessor>(
515515
@"SELECT CASE WHEN AccessorPRN IS NOT NULL THEN AccessorName+', '+AccessorPRN ELSE AccessorName END AS AccessorList,AccessorName,AccessorPRN
516-
FROM (SELECT COALESCE(au.Forename + ' ' + au.Surname + (CASE WHEN au.Active = 1 THEN '' ELSE ' (Inactive)' END), sd.SupervisorEmail) AS AccessorName,
516+
FROM (SELECT DISTINCT COALESCE(au.Forename + ' ' + au.Surname + (CASE WHEN au.Active = 1 THEN '' ELSE ' (Inactive)' END), sd.SupervisorEmail) AS AccessorName,
517517
u.ProfessionalRegistrationNumber AS AccessorPRN
518518
FROM SupervisorDelegates AS sd
519519
INNER JOIN CandidateAssessmentSupervisors AS cas
520520
ON sd.ID = cas.SupervisorDelegateId
521+
INNER JOIN SelfAssessmentResultSupervisorVerifications AS srsv
522+
ON cas.ID = srsv.CandidateAssessmentSupervisorID
521523
INNER JOIN CandidateAssessments AS ca
522524
ON cas.CandidateAssessmentID = ca.ID
523525
LEFT OUTER JOIN AdminUsers AS au
@@ -527,7 +529,8 @@ LEFT OUTER JOIN SelfAssessmentSupervisorRoles AS sasr
527529
ON cas.SelfAssessmentSupervisorRoleID = sasr.ID
528530
INNER JOIN Users AS u ON U.PrimaryEmail = au.Email
529531
WHERE
530-
(sd.Removed IS NULL) AND (cas.Removed IS NULL) AND (ca.DelegateUserID = @DelegateUserID) AND (ca.SelfAssessmentID = @selfAssessmentId)) Accessor
532+
(ca.DelegateUserID = @DelegateUserID) AND (ca.SelfAssessmentID = @selfAssessmentId)
533+
AND (srsv.Verified IS NOT NULL)) Accessor
531534
ORDER BY AccessorName, AccessorPRN DESC",
532535
new { selfAssessmentId, delegateUserID }
533536
);

DigitalLearningSolutions.Web/Controllers/SupervisorController/Supervisor.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -785,6 +785,9 @@ public IActionResult EnrolSetRoleProfile(int supervisorDelegateId, int selfAsses
785785
return View("EnrolDelegateOnProfileAssessment", model);
786786
}
787787

788+
if (sessionEnrolOnRoleProfile.SelfAssessmentID != selfAssessmentID)
789+
sessionEnrolOnRoleProfile = new SessionEnrolOnRoleProfile();
790+
788791
sessionEnrolOnRoleProfile.SelfAssessmentID = selfAssessmentID;
789792
multiPageFormService.SetMultiPageFormData(
790793
sessionEnrolOnRoleProfile,
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@using DigitalLearningSolutions.Web.ViewModels.Login
22
@model AccountInactiveViewModel
33
@{
4-
ViewData["Title"] = "Account not linked";
4+
ViewData["Title"] = "Account not linked";
55
}
66

77
<div class="nhsuk-grid-row">
@@ -10,12 +10,12 @@
1010
<p class="nhsuk-body-l">
1111
It looks like you still need to link your accounts. You might be seeing this because:
1212
<ul>
13-
<li>You've got a DLS and a Learning Hub account but you've not linked them. You'll need to login to DLS and link your accounts.</li>
14-
<li>Or, you might not have a DLS account. You will need to <a asp-controller="Register" asp-action="Start">create a DLS account</a> and link your Learning Hub accout.</li>
13+
<li>You've got a DLS and a Learning Hub account but you've not linked them. You'll need to login to DLS and link your accounts.</li>
14+
<li>Or, you might not have a DLS account. You will need to <a asp-controller="Register" asp-action="Start">create a DLS account</a> and link your Learning Hub account.</li>
1515
</ul>
16-
</p>
16+
</p>
1717
<a class="nhsuk-button" role="button" asp-controller="Home" asp-action="Welcome">
18-
Return to home page
18+
Return to home page
1919
</a>
2020
</div>
2121
</div>

0 commit comments

Comments
 (0)