File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed
DigitalLearningSolutions.Web/Helpers Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -104,16 +104,13 @@ CourseStatistics courseStatistics
104104 {
105105 tags . Add ( new SearchableTagViewModel ( CourseStatusFilterOptions . IsInactive ) ) ;
106106 }
107- if ( courseStatistics . Active )
107+ if ( courseStatistics . HideInLearnerPortal )
108108 {
109- if ( courseStatistics . HideInLearnerPortal )
110- {
111- tags . Add ( new SearchableTagViewModel ( CourseVisibilityFilterOptions . IsHiddenInLearningPortal ) ) ;
112- }
113- else
114- {
115- tags . Add ( new SearchableTagViewModel ( CourseVisibilityFilterOptions . IsNotHiddenInLearningPortal ) ) ;
116- }
109+ tags . Add ( new SearchableTagViewModel ( CourseVisibilityFilterOptions . IsHiddenInLearningPortal ) ) ;
110+ }
111+ else
112+ {
113+ tags . Add ( new SearchableTagViewModel ( CourseVisibilityFilterOptions . IsNotHiddenInLearningPortal ) ) ;
117114 }
118115 return tags ;
119116 }
@@ -235,7 +232,7 @@ public static IEnumerable<SearchableTagViewModel> GetCurrentTagsForSelfAssessmen
235232 ? new SearchableTagViewModel ( SelfAssessmentSignedOffFilterOptions . SignedOff )
236233 : new SearchableTagViewModel ( SelfAssessmentSignedOffFilterOptions . NotSignedOff ) ;
237234 tags . Add ( signedOffTag ) ;
238-
235+
239236 }
240237
241238 return tags ;
You can’t perform that action at this time.
0 commit comments