Merge pull request #1686 from marxjohnson/MOBILE-2721_integration
MOBILE-2721 Keep existing displayname if not setmain
commit
6ce9d7bec5
|
@ -171,6 +171,10 @@ export class CoreCourseSectionPage implements OnDestroy {
|
||||||
// Error getting the course, probably guest access.
|
// Error getting the course, probably guest access.
|
||||||
}).then((course) => {
|
}).then((course) => {
|
||||||
if (course) {
|
if (course) {
|
||||||
|
if (this.course.id === course.id && this.course.hasOwnProperty('displayname')
|
||||||
|
&& !course.hasOwnProperty('displayname')) {
|
||||||
|
course.displayname = this.course.displayname;
|
||||||
|
}
|
||||||
this.course = course;
|
this.course = course;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue