MOBILE-4470 blog: Read courseId from url

main
Alfonso Salces 2024-05-27 13:53:10 +02:00
parent fd40907483
commit 84a29efdaa
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ export class AddonBlogEditEntryPage implements CanLeave, OnInit {
this.entry = await this.getEntry({ filters, lastModified, entryId });
this.files = this.entry.attachmentfiles ?? [];
this.initialFiles = [...this.files];
this.courseId = this.entry.courseid;
this.courseId = CoreNavigator.getRouteNumberParam('courseId') ?? this.entry.courseid;
this.modId = this.entry.coursemoduleid ? this.entry.coursemoduleid : CoreNavigator.getRouteNumberParam('cmId');
if (this.courseId) {