Skip to content

Commit 1d5cf36

Browse files
authored
Merge pull request #2502 from TechnologyEnhancedLearning/Develop/Fixes/TD-3644-CorrectingWhereConditionForMethodIsSupervisorDelegateExistAndReturnId
TD-3644 Correcting the where condition for IsSupervisorDelegateExistAndReturnId
2 parents da56c4f + dbf5efa commit 1d5cf36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DigitalLearningSolutions.Data/DataServices/SupervisorService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,7 @@ LEFT JOIN UserCentreDetails ucd
11391139
@"
11401140
SELECT ID
11411141
FROM SupervisorDelegates sd
1142-
WHERE (sd.SupervisorAdminID = @supervisorAdminID OR @supervisorAdminID = 0) AND (sd.DelegateUserID = @delegateUserId OR @delegateUserID = 0 OR DelegateEmail = @delegateEmail)
1142+
WHERE (sd.SupervisorAdminID = @supervisorAdminID OR @supervisorAdminID = 0) AND (sd.DelegateUserID = @delegateUserId OR @delegateUserID = 0) AND DelegateEmail = @delegateEmail
11431143
ORDER BY ID DESC
11441144
",
11451145
new

0 commit comments

Comments
 (0)