From: skodak Date: Thu, 17 Apr 2008 19:19:55 +0000 (+0000) Subject: MDL-14052 fixed course display in upcoming events block - credit goes to Greg Rodenhi... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=23f36a23757ab38ab0e89a0f351fe8c30424f9ac;p=moodle.git MDL-14052 fixed course display in upcoming events block - credit goes to Greg Rodenhiser; merged from MOODLE_19_STABLE --- diff --git a/blocks/calendar_upcoming/block_calendar_upcoming.php b/blocks/calendar_upcoming/block_calendar_upcoming.php index a4e72f7bf0..b47559593f 100644 --- a/blocks/calendar_upcoming/block_calendar_upcoming.php +++ b/blocks/calendar_upcoming/block_calendar_upcoming.php @@ -44,6 +44,8 @@ class block_calendar_upcoming extends block_base { // the list of courses it will be grabbing events from. $filtercourse = NULL; $groupeventsfrom = NULL; + $SESSION->cal_courses_shown = calendar_get_default_courses(true); + calendar_set_referring_course(0); } else { // Forcibly filter events to include only those from the particular course we are in. $filtercourse = array($courseshown => $COURSE);