-
+
{{ 'core.courses.inprogress' | translate }}
{{ 'core.courses.future' | translate }}
{{ 'core.courses.past' | translate }}
diff --git a/src/core/courses/pages/my-overview/my-overview.ts b/src/core/courses/pages/my-overview/my-overview.ts
index 77981683c..963afe4c5 100644
--- a/src/core/courses/pages/my-overview/my-overview.ts
+++ b/src/core/courses/pages/my-overview/my-overview.ts
@@ -198,7 +198,7 @@ export class CoreCoursesMyOverviewPage {
this.filteredCourses = this.courses[this.courses.selected];
} else {
this.filteredCourses = this.courses[this.courses.selected].filter((course) => {
- return course.fullname.indexOf(newValue) > -1;
+ return course.fullname.toLowerCase().indexOf(newValue.toLowerCase()) > -1;
});
}
}
@@ -309,4 +309,11 @@ export class CoreCoursesMyOverviewPage {
openSearch() {
this.navCtrl.push('CoreCoursesSearchPage');
}
+
+ /**
+ * The selected courses have changed.
+ */
+ selectedChanged() {
+ this.filteredCourses = this.courses[this.courses.selected];
+ }
}
diff --git a/src/providers/sites.ts b/src/providers/sites.ts
index 58f31ea0d..c3fbb5ed3 100644
--- a/src/providers/sites.ts
+++ b/src/providers/sites.ts
@@ -408,7 +408,7 @@ export class CoreSitesProvider {
return siteId;
});
} else if (result == this.LEGACY_APP_VERSION) {
- return Promise.reject(this.translate.instant('mm.login.legacymoodleversion'));
+ return Promise.reject(this.translate.instant('core.login.legacymoodleversion'));
} else {
return Promise.reject(this.translate.instant('core.login.invalidmoodleversion'));
}