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
+2-5Lines changed: 2 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -103,9 +103,6 @@ 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
-
109
106
returnconnection.Query<SelfAssessmentSupervisor>(
110
107
@"SELECT DISTINCT
111
108
sd.ID AS SupervisorDelegateID,
@@ -125,9 +122,9 @@ FROM SupervisorDelegates AS sd
125
122
WHERE (sd.Removed IS NULL) AND (cas.Removed IS NULL) AND (sd.SupervisorAdminID IS NOT NULL) AND (sd.DelegateUserID = @delegateUserId)
126
123
AND (au.Supervisor = 1 OR au.NominatedSupervisor = 1) AND (au.Active = 1)
127
124
AND (ca.SelfAssessmentID <> @selfAssessmentId)
128
-
AND (au.CategoryID = 0 OR au.CategoryID = @selfAssessmentCategoryId)
125
+
AND (au.CategoryID = 0 OR au.CategoryID IN (select CategoryID from SelfAssessments where ID = @selfAssessmentId))
0 commit comments