Skip to content

Commit 83273d2

Browse files
committed
Merge branch 'MDL-65703-37' of git://github.com/lameze/moodle into MOODLE_37_STABLE
2 parents 7eb50a3 + ca66ad2 commit 83273d2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

calendar/classes/external/footer_options_exporter.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ protected function get_link_params() {
100100
$params['course'] = $this->calendar->course->id;
101101
} else if (null !== $this->calendar->categoryid && $this->calendar->categoryid > 0) {
102102
$params['category'] = $this->calendar->categoryid;
103-
} else {
104-
$params['course'] = SITEID;
105103
}
106104

107105
return $params;

calendar/managesubscriptions.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@
129129
$usedefaultfilters = true;
130130
if (!empty($courseid) && $courseid == SITEID && !empty($types['site'])) {
131131
$searches[] = "(eventtype = 'site')";
132+
$usedefaultfilters = false;
133+
}
134+
135+
if (!empty($types['user'])) {
132136
$searches[] = "(eventtype = 'user' AND userid = :userid)";
133137
$params['userid'] = $USER->id;
134138
$usedefaultfilters = false;

0 commit comments

Comments
 (0)