MOBILE-2567 course: Fix hiddenoncoursepage shown when it shouldn't

main
Dani Palou 2018-08-31 12:44:04 +02:00
parent eae69814fd
commit f93ea360b1
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ export class CoreCourseHelperProvider {
} }
// Check if the module is stealth. // Check if the module is stealth.
module.isStealth = !module.visibleoncoursepage || (module.visible && !section.visible); module.isStealth = module.visibleoncoursepage === 0 || (module.visible && !section.visible);
}); });
}); });