mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'MDL-29447' of git://github.com/timhunt/moodle
This commit is contained in:
commit
d87ef08598
@ -1269,12 +1269,14 @@ function quiz_reset_userdata($data) {
|
||||
'error' => false);
|
||||
|
||||
// Remove all grades from gradebook
|
||||
$DB->delete_records_select('quiz_grades',
|
||||
'quiz IN (SELECT id FROM {quiz} WHERE course = ?)', array($data->courseid));
|
||||
if (empty($data->reset_gradebook_grades)) {
|
||||
quiz_reset_gradebook($data->courseid);
|
||||
}
|
||||
$status[] = array(
|
||||
'component' => $componentstr,
|
||||
'item' => get_string('attemptsdeleted', 'quiz'),
|
||||
'item' => get_string('gradesdeleted', 'quiz'),
|
||||
'error' => false);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user