File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff line change 129129$ usedefaultfilters = true ;
130130if (!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 ;
You can’t perform that action at this time.
0 commit comments