Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f06fff
)
MDL-48580 report_log: fix site errors dropdown
author
Simey Lameze
<simey@moodle.com>
Tue, 16 Dec 2014 04:37:28 +0000
(12:37 +0800)
committer
Simey Lameze
<simey@moodle.com>
Tue, 16 Dec 2014 04:37:28 +0000
(12:37 +0800)
Thanks Renaat Debleu for pointing this bug and share a solution.
report/log/classes/renderable.php
patch
|
blob
|
blame
|
history
diff --git
a/report/log/classes/renderable.php
b/report/log/classes/renderable.php
index
1a1b95a
..
d5e99e4
100644
(file)
--- a/
report/log/classes/renderable.php
+++ b/
report/log/classes/renderable.php
@@
-188,7
+188,7
@@
class report_log_renderable implements renderable {
// 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;
}