diff --git a/src/core/course/components/format/core-course-format.html b/src/core/course/components/format/core-course-format.html
index 4b244729d..c70ec5eb3 100644
--- a/src/core/course/components/format/core-course-format.html
+++ b/src/core/course/components/format/core-course-format.html
@@ -69,7 +69,7 @@
-
diff --git a/src/core/course/components/format/format.ts b/src/core/course/components/format/format.ts
index 87f516cd1..57e16e51a 100644
--- a/src/core/course/components/format/format.ts
+++ b/src/core/course/components/format/format.ts
@@ -262,14 +262,14 @@ export class CoreCourseFormatComponent implements OnInit, OnChanges, OnDestroy {
let j;
for (j = i - 1; j >= 1; j--) {
- if (this.sections[j].uservisible !== false && this.sections[j].hasContent) {
+ if (this.sections[j].uservisible !== false && !this.sections[j].hiddenbynumsections) {
break;
}
}
this.previousSection = j >= 1 ? this.sections[j] : null;
for (j = i + 1; j < this.sections.length; j++) {
- if (this.sections[j].uservisible !== false && this.sections[j].hasContent) {
+ if (this.sections[j].uservisible !== false && !this.sections[j].hiddenbynumsections) {
break;
}
}
diff --git a/src/core/course/components/module/core-course-module.html b/src/core/course/components/module/core-course-module.html
index 1f815d2ed..9ab0f394b 100644
--- a/src/core/course/components/module/core-course-module.html
+++ b/src/core/course/components/module/core-course-module.html
@@ -30,11 +30,11 @@
-