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)