From fbc53cf64e9827e5a411263adbc3e964bd703b96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Fri, 21 Jan 2022 14:51:00 +0100 Subject: [PATCH] MOBILE-3913 timeline: Fix on timeline search sorting by dates --- .../timeline/components/events/addon-block-timeline-events.html | 2 +- src/addons/block/timeline/services/timeline.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/addons/block/timeline/components/events/addon-block-timeline-events.html b/src/addons/block/timeline/components/events/addon-block-timeline-events.html index 7907f508c..1a6031f9c 100644 --- a/src/addons/block/timeline/components/events/addon-block-timeline-events.html +++ b/src/addons/block/timeline/components/events/addon-block-timeline-events.html @@ -9,7 +9,7 @@ -

{{ dayEvents.dayTimestamp * 1000 | coreFormatDate:"strftimedayshort" }}

+

{{ dayEvents.dayTimestamp * 1000 | coreFormatDate:"strftimedaydate" }}

diff --git a/src/addons/block/timeline/services/timeline.ts b/src/addons/block/timeline/services/timeline.ts index fe06a1aa6..831c5c5c5 100644 --- a/src/addons/block/timeline/services/timeline.ts +++ b/src/addons/block/timeline/services/timeline.ts @@ -184,6 +184,7 @@ export class AddonBlockTimelineProvider { if (searchValue != '') { data.searchvalue = searchValue; preSets.getFromCache = false; + preSets.cacheKey += ':' + searchValue; } const result = await site.read(