diff --git a/src/addons/calendar/components/filter/filter.ts b/src/addons/calendar/components/filter/filter.ts index 11ecb8eb8..9398c60b7 100644 --- a/src/addons/calendar/components/filter/filter.ts +++ b/src/addons/calendar/components/filter/filter.ts @@ -59,7 +59,7 @@ export class AddonCalendarFilterPopoverComponent implements OnInit { * Init the component. */ ngOnInit(): void { - this.courseId = this.filter.courseId + ''; + this.courseId = (this.filter.courseId || -1) + ''; } /** diff --git a/src/addons/messages/pages/search/search.html b/src/addons/messages/pages/search/search.html index 71ea04fb4..51889a600 100644 --- a/src/addons/messages/pages/search/search.html +++ b/src/addons/messages/pages/search/search.html @@ -50,7 +50,7 @@

-

diff --git a/src/addons/mod/data/services/data-helper.ts b/src/addons/mod/data/services/data-helper.ts index 5951a382d..c0a0cc74f 100644 --- a/src/addons/mod/data/services/data-helper.ts +++ b/src/addons/mod/data/services/data-helper.ts @@ -658,7 +658,7 @@ export class AddonModDataHelperProvider { // Add core-link directive to links. template = template.replace( /]*href="[^>]*)>/ig, - (match, attributes) => '