Skip to content

Commit 4b8a3ab

Browse files
committed
Merge branch 'DLS-Release-v1.1.0' into UAT
2 parents 26999df + 00856ce commit 4b8a3ab

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

DigitalLearningSolutions.Data/DataServices/SelfAssessmentDataService/CompetencyDataService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ public IEnumerable<Competency> GetResultSupervisorVerifications(int selfAssessme
288288
INNER JOIN DelegateAccounts DA1 ON CA.DelegateUserID = DA1.UserID AND au.CentreID = DA1.CentreID AND DA1.Active=1
289289
WHERE (LAR.Verified IS NULL) 
290290
AND ((LAR.Result IS NOT NULL) OR (LAR.SupportingComments IS NOT NULL)) 
291-
AND (LAR.Requested IS NOT NULL)
291+
AND (LAR.Requested IS NOT NULL) AND (au.CategoryID = 0 OR au.CategoryID = (select CategoryID from SelfAssessments where ID = @selfAssessmentId))
292292
ORDER BY SupervisorVerificationRequested DESC, C.Name",
293293
(competency, assessmentQuestion) =>
294294
{

DigitalLearningSolutions.Data/DataServices/UserDataService/AdminUserDataService.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,10 @@ bool isCentreManager
279279
IsContentCreator = @isContentCreator,
280280
IsContentManager = @isContentManager,
281281
ImportOnly = @importOnly,
282-
CategoryID = @categoryId,
282+
CategoryID = CASE
283+
WHEN @categoryID = 0 THEN NULL
284+
ELSE @categoryID
285+
END,
283286
IsCentreManager = @isCentreManager
284287
WHERE ID = @adminId",
285288
new

0 commit comments

Comments
 (0)