MDL-72275 timeline: Add default offset to template
commit5b6f95647b2f30f1f0c9f07b516f38072a51a583
authorMichael Hawkins <michaelh@moodle.com>
Fri, 17 Sep 2021 08:45:03 +0000 (17 16:45 +0800)
committerMichael Hawkins <michaelh@moodle.com>
Fri, 24 Sep 2021 03:23:57 +0000 (24 11:23 +0800)
treea654c3b8b38a12e5fda4d0d1148d794f74ab4493
parent8061730d7b9f8e1aa58fcc5e7b125a19964a7fba
MDL-72275 timeline: Add default offset to template

This value was being passed in the template, but the template
had 0 hardcoded instead of injecting the context value. With the other
bug fixes in this issue correctly loading the "All" view properly on
page load, this uncovered that at load time, the course view would not
load overdue items, which also meant a behat test was failing.
blocks/timeline/templates/view.mustache