mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
Merge branch 'MDL-84232-405-avoid_recover_quiz_grades' of https://github.com/drobayo/moodle into MOODLE_405_STABLE
This commit is contained in:
commit
d87b86d997
@ -137,7 +137,7 @@ $gradeitem = grade_item::fetch([
|
||||
]);
|
||||
|
||||
if ($gradeitem) {
|
||||
if ($gradeitem->refresh_grades($USER->id)) {
|
||||
if ($CFG->recovergradesdefault && $gradeitem->refresh_grades($USER->id)) {
|
||||
$grade = $gradeitem->get_grade($USER->id, false);
|
||||
if ($grade->overridden) {
|
||||
if ($gradeitem->needsupdate) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user