MDL-67702 mod_assign: distinct uniqueid value for grading tables.

This has the effect of making table sorting and filtering by initials
apply only to the current table instance, rather than to all of them.
This commit is contained in:
Paul Holden 2020-01-28 00:56:48 +00:00
parent d330035f11
commit 05680020e7
2 changed files with 19 additions and 12 deletions

View file

@ -82,7 +82,9 @@ class assign_grading_table extends table_sql implements renderable {
$quickgrading,
$downloadfilename = null) {
global $CFG, $PAGE, $DB, $USER;
parent::__construct('mod_assign_grading');
parent::__construct('mod_assign_grading-' . $assignment->get_context()->id);
$this->is_persistent(true);
$this->assignment = $assignment;