From ef8296c81991c8b9d7f0be73ebcc1807779fb9ef Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Tue, 11 Aug 2020 23:33:20 +0100 Subject: [PATCH] MDL-69449 block_timeline: use dayslimit context data in template. Ensures the correct value is used when initially rendering the course timeline. --- blocks/timeline/templates/view.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocks/timeline/templates/view.mustache b/blocks/timeline/templates/view.mustache index ce96132255d..a6ceef3370c 100644 --- a/blocks/timeline/templates/view.mustache +++ b/blocks/timeline/templates/view.mustache @@ -57,7 +57,7 @@ data-midnight="{{midnight}}" data-limit="2" data-offset="0" - data-days-limit="30" + data-days-limit="{{dayslimit}}" data-days-offset="0" data-no-events-url="{{urls.noevents}}" id="view_courses_{{uniqid}}"