Skip to content

Commit 457ce88

Browse files
TD-4889 Resolving 500 error issue while trying to promote to nominated supervisor
1 parent b0f7863 commit 457ce88

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)