Skip to content

Commit 58b5da5

Browse files
TD-3955: eLearning with Passed type is also included when the user completes the learning and exit without proper closure
1 parent f9a9b51 commit 58b5da5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LearningHub.Nhs.WebUI/Controllers/Api/ScormController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ private async Task<bool> Commit(SCO scoObject)
260260

261261
// Persist update.
262262
await this.activityService.UpdateScormActivityAsync(scoObject);
263-
if (scoObject.LessonStatusId == 3)
263+
if (scoObject.LessonStatusId == 3 || scoObject.LessonStatusId == 5)
264264
{
265265
await this.activityService.CompleteScormActivity(scoObject);
266266
}

0 commit comments

Comments
 (0)