MOBILE-2502 course: Fix navigate to stealth modules

main
Dani Palou 2018-11-21 09:19:36 +01:00
parent bb3a525a5b
commit 8e07f0a4ed
1 changed files with 3 additions and 1 deletions

View File

@ -398,9 +398,11 @@ export class CoreCourseProvider {
}).then((sections) => {
for (let i = 0; i < sections.length; i++) {
const section = sections[i];
if (sectionId != null && !isNaN(sectionId) && sectionId != section.id) {
if (sectionId != null && !isNaN(sectionId) && section.id != CoreCourseProvider.STEALTH_MODULES_SECTION_ID &&
sectionId != section.id) {
continue;
}
for (let j = 0; j < section.modules.length; j++) {
const module = section.modules[j];
if (module.id == moduleId) {