MDL-47793 assign: trivial fix for inconsistent use of get_instance()
This commit is contained in:
@@ -772,9 +772,8 @@ class assign {
|
||||
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));
|
||||
$DB->set_field('assign', 'revealidentities', 0, array('id' => $this->get_instance()->id));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user