mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-13749 Front Page Calendar: Not displaying information from courses student is a member of.; merged from MOODLE_19_STABLE
This commit is contained in:
parent
7ee33f8178
commit
d747d41bf2
@ -32,11 +32,14 @@ class block_calendar_month extends block_base {
|
|||||||
// It definitely needs SOME comment here!
|
// It definitely needs SOME comment here!
|
||||||
$courseshown = $COURSE->id;
|
$courseshown = $COURSE->id;
|
||||||
|
|
||||||
if($courseshown == SITEID) {
|
if ($courseshown == SITEID) {
|
||||||
// Being displayed at site level. This will cause the filter to fall back to auto-detecting
|
// Being displayed at site level. This will cause the filter to fall back to auto-detecting
|
||||||
// the list of courses it will be grabbing events from.
|
// the list of courses it will be grabbing events from.
|
||||||
$filtercourse = NULL;
|
$filtercourse = NULL;
|
||||||
$groupeventsfrom = NULL;
|
$groupeventsfrom = NULL;
|
||||||
|
$SESSION->cal_courses_shown = calendar_get_default_courses(true);
|
||||||
|
calendar_set_referring_course(0);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// Forcibly filter events to include only those from the particular course we are in.
|
// Forcibly filter events to include only those from the particular course we are in.
|
||||||
$filtercourse = array($courseshown => $COURSE);
|
$filtercourse = array($courseshown => $COURSE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user