Skip to content

Commit

Permalink
Merge branch 'MDL-47793-m' of https://github.com/micaherne/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
Damyon Wiese committed Nov 5, 2014
2 parents 6861501 + 48242bf commit 43db479
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mod/assign/locallib.php
Expand Up @@ -770,6 +770,12 @@ public function reset_userdata($data) {
// Remove all grades from gradebook.
require_once($CFG->dirroot.'/mod/assign/lib.php');
assign_reset_gradebook($data->courseid);

// Reset revealidentities if both submissions and grades have been reset.
$instance = $this->get_instance();
if ($this->get_instance()->blindmarking && $this->get_instance()->revealidentities) {
$DB->set_field('assign', 'revealidentities', 0, array('id' => $instance->id));
}
}
}
// Updating dates - shift may be negative too.
Expand Down

0 comments on commit 43db479

Please sign in to comment.