Skip to content

Commit 3217477

Browse files
TD-4238 Resolving current activities showing back link as ‘Completed activities’
1 parent 6202973 commit 3217477

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

DigitalLearningSolutions.Web/Controllers/LearningMenuController/LearningMenuController.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ public IActionResult Section(int customisationId, int sectionId)
232232
courseContentService.UpdateProgress(progressId.Value);
233233
};
234234

235-
SetTempData(candidateId, customisationId);
235+
SetTempData(candidateId, customisationId, progressId.Value);
236236

237237
var model = new SectionContentViewModel(config, sectionContent, customisationId, sectionId);
238238
return View("Section/Section", model);
@@ -273,7 +273,7 @@ public IActionResult Diagnostic(int customisationId, int sectionId)
273273
courseContentService.UpdateProgress(progressId.Value);
274274
};
275275

276-
SetTempData(candidateId, customisationId);
276+
SetTempData(candidateId, customisationId, progressId.Value);
277277
var model = new DiagnosticAssessmentViewModel(diagnosticAssessment, customisationId, sectionId);
278278
return View("Diagnostic/Diagnostic", model);
279279
}
@@ -309,7 +309,7 @@ public IActionResult DiagnosticContent(int customisationId, int sectionId, List<
309309
courseContentService.UpdateProgress(progressId.Value);
310310
};
311311

312-
SetTempData(candidateId, customisationId);
312+
SetTempData(candidateId, customisationId, progressId.Value);
313313
var model = new DiagnosticContentViewModel(
314314
config,
315315
diagnosticContent,
@@ -358,7 +358,7 @@ public IActionResult PostLearning(int customisationId, int sectionId)
358358
courseContentService.UpdateProgress(progressId.Value);
359359
};
360360

361-
SetTempData(candidateId, customisationId);
361+
SetTempData(candidateId, customisationId, progressId.Value);
362362
var model = new PostLearningAssessmentViewModel(postLearningAssessment, customisationId, sectionId);
363363
return View("PostLearning/PostLearning", model);
364364
}
@@ -447,7 +447,7 @@ public async Task<IActionResult> Tutorial(int customisationId, int sectionId, in
447447
courseContentService.UpdateProgress(progressId.Value);
448448
};
449449

450-
SetTempData(candidateId, customisationId);
450+
SetTempData(candidateId, customisationId, progressId.Value );
451451
/* Course progress doesn't get updated if the auth token expires by the end of the tutorials.
452452
Some tutorials are longer than the default auth token lifetime of 1 hour, so we set the auth expiry to 8 hours.
453453
See HEEDLS-637 and HEEDLS-674 for more details */
@@ -581,7 +581,7 @@ public IActionResult CompletionSummary(int customisationId)
581581
courseContentService.UpdateProgress(progressId.Value);
582582
};
583583

584-
SetTempData(candidateId, customisationId);
584+
SetTempData(candidateId, customisationId, progressId.Value);
585585
var model = new CourseCompletionViewModel(config, courseCompletion, progressId.Value);
586586
return View("Completion/Completion", model);
587587
}

0 commit comments

Comments
 (0)