Skip to content

Commit eb85659

Browse files
authored
Merge pull request #2783 from TechnologyEnhancedLearning/Develop/Fixes/TD-4238-Launchingfewcoursesfrom'Currentactivities'orfrom'Coursesetup'seeingbacklinkasCompletedactivities'
TD-4238 Launching few courses from 'Current activities' or from 'Course set up' seeing back link as 'Completed activities'
2 parents 53c570f + 3217477 commit eb85659

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
@@ -259,7 +259,7 @@ public IActionResult Section(int customisationId, int sectionId)
259259
courseContentService.UpdateProgress(progressId.Value);
260260
};
261261

262-
SetTempData(candidateId, customisationId);
262+
SetTempData(candidateId, customisationId, progressId.Value);
263263

264264
var model = new SectionContentViewModel(config, sectionContent, customisationId, sectionId);
265265
return View("Section/Section", model);
@@ -300,7 +300,7 @@ public IActionResult Diagnostic(int customisationId, int sectionId)
300300
courseContentService.UpdateProgress(progressId.Value);
301301
};
302302

303-
SetTempData(candidateId, customisationId);
303+
SetTempData(candidateId, customisationId, progressId.Value);
304304
var model = new DiagnosticAssessmentViewModel(diagnosticAssessment, customisationId, sectionId);
305305
return View("Diagnostic/Diagnostic", model);
306306
}
@@ -336,7 +336,7 @@ public IActionResult DiagnosticContent(int customisationId, int sectionId, List<
336336
courseContentService.UpdateProgress(progressId.Value);
337337
};
338338

339-
SetTempData(candidateId, customisationId);
339+
SetTempData(candidateId, customisationId, progressId.Value);
340340
var model = new DiagnosticContentViewModel(
341341
config,
342342
diagnosticContent,
@@ -385,7 +385,7 @@ public IActionResult PostLearning(int customisationId, int sectionId)
385385
courseContentService.UpdateProgress(progressId.Value);
386386
};
387387

388-
SetTempData(candidateId, customisationId);
388+
SetTempData(candidateId, customisationId, progressId.Value);
389389
var model = new PostLearningAssessmentViewModel(postLearningAssessment, customisationId, sectionId);
390390
return View("PostLearning/PostLearning", model);
391391
}
@@ -474,7 +474,7 @@ public async Task<IActionResult> Tutorial(int customisationId, int sectionId, in
474474
courseContentService.UpdateProgress(progressId.Value);
475475
};
476476

477-
SetTempData(candidateId, customisationId);
477+
SetTempData(candidateId, customisationId, progressId.Value );
478478
/* Course progress doesn't get updated if the auth token expires by the end of the tutorials.
479479
Some tutorials are longer than the default auth token lifetime of 1 hour, so we set the auth expiry to 8 hours.
480480
See HEEDLS-637 and HEEDLS-674 for more details */
@@ -608,7 +608,7 @@ public IActionResult CompletionSummary(int customisationId)
608608
courseContentService.UpdateProgress(progressId.Value);
609609
};
610610

611-
SetTempData(candidateId, customisationId);
611+
SetTempData(candidateId, customisationId, progressId.Value);
612612
var model = new CourseCompletionViewModel(config, courseCompletion, progressId.Value);
613613
return View("Completion/Completion", model);
614614
}

0 commit comments

Comments
 (0)