You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DigitalLearningSolutions.Data/DataServices/SelfAssessmentDataService/SelfAssessmentSupervisorDataService.cs
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,9 @@ public IEnumerable<SelfAssessmentSupervisor> GetOtherSupervisorsForCandidate(
103
103
intdelegateUserId
104
104
)
105
105
{
106
+
varselfAssessmentCategoryId=connection.ExecuteScalar<int>(@"SELECT CategoryID FROM SelfAssessments WHERE ID = @selfAssessmentId",
107
+
new{selfAssessmentId});
108
+
106
109
returnconnection.Query<SelfAssessmentSupervisor>(
107
110
@"SELECT DISTINCT
108
111
sd.ID AS SupervisorDelegateID,
@@ -122,8 +125,9 @@ FROM SupervisorDelegates AS sd
122
125
WHERE (sd.Removed IS NULL) AND (cas.Removed IS NULL) AND (sd.SupervisorAdminID IS NOT NULL) AND (sd.DelegateUserID = @delegateUserId)
123
126
AND (au.Supervisor = 1 OR au.NominatedSupervisor = 1) AND (au.Active = 1)
124
127
AND (ca.SelfAssessmentID <> @selfAssessmentId)
128
+
AND (au.CategoryID = 0 OR au.CategoryID = @selfAssessmentCategoryId)
0 commit comments