Merge pull request #1616 from dpalou/MOBILE-2502

MOBILE-2502 course: Fix navigate to stealth modules
main
Juan Leyva 2018-11-21 12:53:24 +01:00 committed by GitHub
commit d360929e70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {