Skip to content

Commit

Permalink
MDL-48580 report_log: fix site errors dropdown
Browse files Browse the repository at this point in the history
Thanks Renaat Debleu for pointing this bug and share a solution.
  • Loading branch information
lameze committed Dec 16, 2014
1 parent 8f06fff commit 64a5ede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion report/log/classes/renderable.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public function get_activities_list() {

// For site just return site errors option.
$sitecontext = context_system::instance();
if (empty($this->course) && has_capability('report/log:view', $sitecontext)) {
if ($this->course->id == SITEID && has_capability('report/log:view', $sitecontext)) {
$activities["site_errors"] = get_string("siteerrors");
return $activities;
}
Expand Down

0 comments on commit 64a5ede

Please sign in to comment.