Skip to content
Snippets Groups Projects
Verified Commit 6f7ac053 authored by Till Glöggler's avatar Till Glöggler
Browse files

fixes #1829

parent cf961f34
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,7 @@ abstract class Context ...@@ -17,7 +17,7 @@ abstract class Context
'participants', 'participants',
'schedule', 'schedule',
'wiki', 'wiki',
'courseware', 'courseware',
'forum' 'forum'
]; ];
...@@ -86,6 +86,11 @@ abstract class Context ...@@ -86,6 +86,11 @@ abstract class Context
$params = [$this->getContextType(), $this->getRangeId(), $filter->getStartDate(), $filter->getEndDate()]; $params = [$this->getContextType(), $this->getRangeId(), $filter->getStartDate(), $filter->getEndDate()];
if ($filter->getContext() !== null && $filter->getContextId() !== null) { if ($filter->getContext() !== null && $filter->getContextId() !== null) {
// if a single context is provided and this context does not match, do not return any activites
if ($this->getRangeId() != $filter->getContextId()) {
return null;
}
$params = [$filter->getContext(), $filter->getContextId(), $filter->getStartDate(), $filter->getEndDate()]; $params = [$filter->getContext(), $filter->getContextId(), $filter->getStartDate(), $filter->getEndDate()];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment