mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-46670 report_participation: Look for records in legacy and current
Priority log store will have current information, so make sure to get information and aggregate that with legacy data
This commit is contained in:
parent
1446e02f69
commit
9e4e87b434
@ -117,9 +117,11 @@ if ($onlyuselegacyreader) {
|
||||
if (empty($minlog) || ($minloginternalreader <= $minlog)) {
|
||||
$uselegacyreader = false;
|
||||
$minlog = $minloginternalreader;
|
||||
} else if (!empty($timefrom) && ($minloginternalreader > $timefrom)) {
|
||||
// If timefrom is less then first record in sql_internal_reader then get record from legacy log only.
|
||||
$onlyuselegacyreader = true;
|
||||
}
|
||||
|
||||
// If timefrom is greater then first record in sql_internal_reader then get record from sql_internal_reader only.
|
||||
if (!empty($timefrom) && ($minloginternalreader < $timefrom)) {
|
||||
$uselegacyreader = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user