Skip to content

Commit 00856ce

Browse files
authored
Merge pull request #3032 from TechnologyEnhancedLearning/Develop/Features/TD-4889-WhenasupervisorpromotesalearnertotheNominatedsupervisorrole,assignthemtothesamecategoryasthesupervisors
TD-4889 When a supervisor promotes a learner to the Nominated supervisor role, assign them to the same category as the supervisor
2 parents 576fbef + 457ce88 commit 00856ce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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)