Merge branch 'MDL-45151-master' of git://github.com/damyon/moodle

This commit is contained in:
David Monllaó 2019-02-19 06:39:24 +01:00
commit 4f3f8fba67
5 changed files with 57 additions and 4 deletions

View file

@ -60,6 +60,9 @@ abstract class base extends \core\event\base {
if ($assign->get_context()->id != $this->get_context()->id) {
throw new \coding_exception('Invalid assign isntance supplied!');
}
if ($assign->is_blind_marking()) {
$this->data['anonymous'] = 1;
}
$this->assign = $assign;
}