MDL-53916 mod_assign: Point update grade link to new interface
authorCameron Ball <cameron@moodle.com>
Fri, 6 May 2016 08:20:53 +0000 (16:20 +0800)
committerDan Poltawski <dan@moodle.com>
Tue, 10 May 2016 14:42:05 +0000 (15:42 +0100)
mod/assign/gradingtable.php

index 3f64179..8dfae96 100644 (file)
@@ -1010,10 +1010,15 @@ class assign_grading_table extends table_sql implements renderable {
 
         $actions = array();
 
-        $urlparams = array('id'=>$this->assignment->get_course_module()->id,
-                           'rownum'=>$this->rownum,
-                           'action' => 'grade',
-                           'useridlistid' => $this->assignment->get_useridlist_key_id());
+        $urlparams = array('id' => $this->assignment->get_course_module()->id,
+                               'rownum' => 0,
+                               'action' => 'grader');
+
+        if ($this->assignment->is_blind_marking()) {
+            $urlparams['blindid'] = $this->assignment->get_uniqueid_for_user($row->userid);
+        } else {
+            $urlparams['userid'] = $row->userid;
+        }
         $url = new moodle_url('/mod/assign/view.php', $urlparams);
         $noimage = null;