From 3c34b3be2181fef05208166fad0ef636956a1d03 Mon Sep 17 00:00:00 2001 From: Rohit Shrivastava Date: Tue, 19 May 2026 14:36:10 +0100 Subject: [PATCH] TD-7284 Limiting List Of Frameworks To Only Published --- .../CompetencyAssessments.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/DigitalLearningSolutions.Web/Controllers/CompetencyAssessmentsController/CompetencyAssessments.cs b/DigitalLearningSolutions.Web/Controllers/CompetencyAssessmentsController/CompetencyAssessments.cs index 2581f964b9..ff13a33585 100644 --- a/DigitalLearningSolutions.Web/Controllers/CompetencyAssessmentsController/CompetencyAssessments.cs +++ b/DigitalLearningSolutions.Web/Controllers/CompetencyAssessmentsController/CompetencyAssessments.cs @@ -378,7 +378,8 @@ public IActionResult SaveVocabulary(EditVocabularyViewModel model) public IActionResult SelectFrameworkSources(int competencyAssessmentId, string actionName) { var adminId = GetAdminID(); - var frameworks = frameworkService.GetAllFrameworks(adminId); + var frameworks = frameworkService.GetAllFrameworks(adminId).Where(f => f.PublishStatusID == 3) + .ToList(); var competencyAssessmentBase = competencyAssessmentService.GetCompetencyAssessmentBaseById(competencyAssessmentId, adminId); if (competencyAssessmentBase == null) { @@ -402,7 +403,8 @@ public IActionResult SelectFrameworkSources(SelectFrameworkSourcesFormData model var competencyAssessmentId = model.CompetencyAssessmentId; if (!ModelState.IsValid) { - var frameworks = frameworkService.GetAllFrameworks(adminId); + var frameworks = frameworkService.GetAllFrameworks(adminId).Where(f => f.PublishStatusID == 3) + .ToList(); var competencyAssessmentBase = competencyAssessmentService.GetCompetencyAssessmentBaseById(competencyAssessmentId, adminId); if (competencyAssessmentBase == null)