MOBILE-3833 course: Do not display course displayname on course page
parent
3d2d99fb7d
commit
d4a9bd2ec5
|
@ -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 || '';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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 || '';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue