Quantcast
Channel: Assignment
Viewing all articles
Browse latest Browse all 9625

Re: Adding a button to the old grader in the assign module

$
0
0

by Dave Balch.  

There might be a few other pitfalls to watch out for, e.g.

  1. Other places linking to the new grader page - specifically the "Grade" links on the grading table.
  2. Blind marking doesn't work anymore, with all the "grade" links on the grading table linking to just the submission in the first row.

Something like this might be of use:

diff --git a/mod/assign/gradingtable.php b/mod/assign/gradingtable.php
index 7b04c09..4fa79a6 100644
--- a/mod/assign/gradingtable.php
+++ b/mod/assign/gradingtable.php
@@ -850,8 +850,8 @@ class assign_grading_table extends table_sql implements renderable {

if (!$this->is_downloading() && $this->hasgrade) {
$urlparams = array('id' => $this->assignment->get_course_module()->id,
- 'rownum' => 0,
- 'action' => 'grader');
+ 'rownum' => $this->rownum,
+ 'action' => 'grade');

if ($this->assignment->is_blind_marking()) {
if (empty($row->recordid)) {
@@ -1048,7 +1048,7 @@ class assign_grading_table extends table_sql implements renderable {

$urlparams = array('id' => $this->assignment->get_course_module()->id,
'rownum' => 0,
- 'action' => 'grader');
+ 'action' => 'grade');

if ($this->assignment->is_blind_marking()) {
if (empty($row->recordid)) {


Viewing all articles
Browse latest Browse all 9625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>