Skip to content

Commit 9c78d1b

Browse files
authored
Merge pull request #2919 from TechnologyEnhancedLearning/Develop/Features/TD-4973-LimitthelistofsupervisorsintheRequestproficiencyconfirmationviewtosupervisorswithamatchingcategory
TD-4973 Limit the list of supervisors in the Request proficiency confirmation view to supervisors with a matching category
2 parents a731074 + 89a607d commit 9c78d1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

DigitalLearningSolutions.Data/DataServices/SelfAssessmentDataService/SelfAssessmentSupervisorDataService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ LEFT OUTER JOIN AdminUsers AS au
5757
ON sd.SupervisorAdminID = au.AdminID
5858
INNER JOIN DelegateAccounts da ON sd.DelegateUserID = da.UserID AND au.CentreID = da.CentreID AND da.Active=1
5959
LEFT OUTER JOIN SelfAssessmentSupervisorRoles AS sasr
60-
ON cas.SelfAssessmentSupervisorRoleID = sasr.ID";
60+
ON cas.SelfAssessmentSupervisorRoleID = sasr.ID
61+
LEFT OUTER JOIN SelfAssessments sa ON sa.id = ca.SelfAssessmentID AND sa.CategoryID = au.CategoryID";
6162

6263
public SelfAssessmentSupervisor? GetSupervisorForSelfAssessmentId(int selfAssessmentId, int delegateUserId)
6364
{

0 commit comments

Comments
 (0)