MDL-12400 - superfluous required_param causing problems in upload
assignment user report. backported from MOODLE_19_STABLE
This commit is contained in:
@@ -314,9 +314,8 @@ class assignment_upload extends assignment_base {
|
||||
}
|
||||
|
||||
if ($this->notes_allowed() and !empty($submission->data1) and !empty($mode)) { // only during grading
|
||||
$offset = required_param('offset', PARAM_INT);
|
||||
|
||||
$npurl = "type/upload/notes.php?id={$this->cm->id}&userid=$userid&offset=$offset&mode=single";
|
||||
$npurl = $CFG->wwwroot."/mod/assignment/type/upload/notes.php?id={$this->cm->id}&userid=$userid&offset=$offset&mode=single";
|
||||
$output .= '<a href="'.$npurl.'">'.get_string('notes', 'assignment').'</a><br />';
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user