Skip to content

Commit fb55101

Browse files
Merge pull request #262 from TechnologyEnhancedLearning/Develop/Fixes/TD-3955-Certificate-not-unlocking-for-user
TD-3955: eLearning with Passed type is also included when the user completes the learning and exit without proper closure
2 parents f9a9b51 + 8c5fea1 commit fb55101

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 == ScormLessionStatus.ActivityStatusId(ScormLessionStatus.Completed) || scoObject.LessonStatusId == ScormLessionStatus.ActivityStatusId(ScormLessionStatus.Passed))
264264
{
265265
await this.activityService.CompleteScormActivity(scoObject);
266266
}

0 commit comments

Comments
 (0)