MOBILE-3833 course: Do not display course displayname on course page

main
Pau Ferrer Ocaña 2022-02-22 23:03:40 +01:00
parent 3d2d99fb7d
commit d4a9bd2ec5
2 changed files with 2 additions and 14 deletions

View File

@ -59,13 +59,7 @@ export class CoreCourseFormatSingleActivityHandlerService implements CoreCourseF
return sections[0].modules[0].name;
}
if (course.displayname) {
return course.displayname;
} else if (course.fullname) {
return course.fullname;
}
return '';
return course.fullname || '';
}
/**

View File

@ -40,13 +40,7 @@ export class CoreCourseFormatDefaultHandler implements CoreCourseFormatHandler {
* @inheritdoc
*/
getCourseTitle(course: CoreCourseAnyCourseData): string {
if (course.displayname) {
return course.displayname;
} else if (course.fullname) {
return course.fullname;
}
return '';
return course.fullname || '';
}
/**