Permalink
Browse files

Merge branch 'MDL-29447_21' of git://github.com/timhunt/moodle into M…

…OODLE_21_STABLE
  • Loading branch information...
2 parents 415c4ee + 0d3a082 commit 28d838ba5eef9f32edd9a7774d9bcf9ff911e6c5 Sam Hemelryk committed Oct 10, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 mod/quiz/lib.php
View
@@ -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);
}

0 comments on commit 28d838b

Please sign in to comment.