From d7d90cda58d7d0f917107ea7bbdaa2e0fff20839 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Wed, 19 Jan 2022 11:20:39 +0100 Subject: [PATCH 1/2] MOBILE-3833 calendar: Fix missing calendar icon --- src/assets/img/icons/calendar.png | Bin 0 -> 514 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 src/assets/img/icons/calendar.png diff --git a/src/assets/img/icons/calendar.png b/src/assets/img/icons/calendar.png new file mode 100644 index 0000000000000000000000000000000000000000..e825eeee4c685d011779c5f824609f7e112c5b70 GIT binary patch literal 514 zcmV+d0{#7oP)LpwFUf^${8+>aJob?)m~Ef=DaW2k54KC3o6IHzE`h z7#F6c4T?=tLSpaP3=@VkbB1&88HkVoy)_c+xc3FH4P25AsdX@A$rdD2x|KOP<&QCX>nD!t@dN5Rr$uIqUWP zEP0l?&?*p-25=L0k|wYeJdWcuvgApU16SQ{_u!YdcNjfL20Y&vvTFaHc~wO2famFS z`ckb{cdfN+(w+w>Y37wp`x zQ30bu6|Tr==_z51xekKB0>^y+&d)2}L}cjuerxvO3m Date: Wed, 19 Jan 2022 08:51:34 +0100 Subject: [PATCH 2/2] MOBILE-3833 calendar: Fix no records found error --- src/addons/calendar/services/calendar-helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addons/calendar/services/calendar-helper.ts b/src/addons/calendar/services/calendar-helper.ts index 776c2b38d..a4f3a9479 100644 --- a/src/addons/calendar/services/calendar-helper.ts +++ b/src/addons/calendar/services/calendar-helper.ts @@ -400,7 +400,7 @@ export class AddonCalendarHelperProvider { ): Promise<{ daynames: Partial[]; weeks: AddonCalendarWeek[] }> { const site = await CoreSites.getSite(siteId); // Get starting week day user preference, fallback to site configuration. - let startWeekDayStr = site.getStoredConfig('calendar_startwday'); + let startWeekDayStr = site.getStoredConfig('calendar_startwday') || '1'; startWeekDayStr = await CoreConfig.get(AddonCalendarProvider.STARTING_WEEK_DAY, startWeekDayStr); const startWeekDay = parseInt(startWeekDayStr, 10);