From f93ea360b14a271657dc815f3fe30cd6be21170a Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Fri, 31 Aug 2018 12:44:04 +0200 Subject: [PATCH] MOBILE-2567 course: Fix hiddenoncoursepage shown when it shouldn't --- src/core/course/providers/helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/course/providers/helper.ts b/src/core/course/providers/helper.ts index 87eb371d9..b9797a732 100644 --- a/src/core/course/providers/helper.ts +++ b/src/core/course/providers/helper.ts @@ -153,7 +153,7 @@ export class CoreCourseHelperProvider { } // Check if the module is stealth. - module.isStealth = !module.visibleoncoursepage || (module.visible && !section.visible); + module.isStealth = module.visibleoncoursepage === 0 || (module.visible && !section.visible); }); });