mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
calendar MDL-14693 fix month link when calendar is displayed on a text page resource, merged from 1.9
This commit is contained in:
parent
f4358aa946
commit
b894086df5
@ -41,6 +41,8 @@ class block_calendar_month extends block_base {
|
||||
calendar_set_referring_course(0);
|
||||
|
||||
} else {
|
||||
//MDL-14693: fix calendar on resource page
|
||||
$courseshown = optional_param( 'id', $COURSE->id, PARAM_INT );
|
||||
// Forcibly filter events to include only those from the particular course we are in.
|
||||
$filtercourse = array($courseshown => $COURSE);
|
||||
$groupeventsfrom = array($courseshown => 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user