'mod_assign');
$urlparams = array('id' => $this->assignment->get_course_module()->id,
'rownum'=>$this->rownum,
- 'action'=>'grade');
+ 'action' => 'grade',
+ 'useridlistid' => $this->assignment->get_useridlist_key_id());
$url = new moodle_url('/mod/assign/view.php', $urlparams);
$link = $this->output->action_link($url, $icon);
$grade .= $link . $separator;
$urlparams = array('id'=>$this->assignment->get_course_module()->id,
'rownum'=>$this->rownum,
- 'action'=>'grade');
+ 'action' => 'grade',
+ 'useridlistid' => $this->assignment->get_useridlist_key_id());
$url = new moodle_url('/mod/assign/view.php', $urlparams);
$noimage = null;
}
return '';
}
+
+ /**
+ * Overides setup to ensure it will only run a single time.
+ */
+ public function setup() {
+ // Check if the setup function has been called before, we should not run it twice.
+ // If we do the sortorder of the table will be broken.
+ if (!empty($this->setup)) {
+ return;
+ }
+ parent::setup();
+ }
}