MDL-44573: Remove HTML tags in outputs column in offline grading worksheet

This commit is contained in:
Tim Lock 2014-03-12 11:41:37 +10:30
parent 9ea57c8bc3
commit 6b7aa837c9

View File

@ -700,7 +700,11 @@ class assign_grading_table extends table_sql implements renderable {
$outcomes .= $this->output->container($outcome->name . ': ' . $select, 'outcome');
} else {
$name = $outcome->name . ': ' . $options[$outcome->grades[$row->userid]->grade];
$outcomes .= $this->output->container($name, 'outcome');
if ($this->is_downloading()) {
$outcomes .= $name;
} else {
$outcomes .= $this->output->container($name, 'outcome');
}
}
}