-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
3.5.15, 3.7.9, 3.8.6, 3.9.3, 3.10, 4.0.8, 4.1.3, 4.2
-
MOODLE_310_STABLE, MOODLE_35_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE, MOODLE_401_STABLE, MOODLE_402_STABLE
-
MDL-70390-main-latest
-
The "report/outline" module currently checks whether legacy or internal log are enabled and refuses to proceed otherwise. Whether there is some technical reason to do so or not, it would be swell if external log support can be included.
Relevant section of report/outline/index.php:
// If no legacy and no internal log then don't proceed.
|
if (!$uselegacyreader && !$useinternalreader) { |
echo $OUTPUT->box_start('generalbox', 'notice'); |
echo $OUTPUT->notification(get_string('nologreaderenabled', 'report_outline')); |
echo $OUTPUT->box_end();
|
echo $OUTPUT->footer();
|
die();
|
}
|
Following sections handle legacy and internal drivers differently as well. As far as I know, external logging is supposed to use the same table structure as internal logging, so this might be an entry point to tackling this.
To reproduce:
In Website-Administration -> Plugins -> Logging, disable all logstores but external, then go to Course Settings -> Reports -> Activity report.
Request should fail with error message "No log reader enabled".
- Testing discovered
-
MDL-81327 Resolve log and loglive report issues when external database are used to store logs
-
- Closed
-