Merge branch 'MDL-34543' of git://github.com/merrill-oakland/moodle
This commit is contained in:
@@ -2983,13 +2983,13 @@ class assign {
|
||||
}
|
||||
|
||||
if (has_all_capabilities(array('gradereport/grader:view', 'moodle/grade:viewall'), $this->get_course_context())) {
|
||||
$grade = $this->output->action_link(new moodle_url('/grade/report/grader/index.php',
|
||||
$gradestring = $this->output->action_link(new moodle_url('/grade/report/grader/index.php',
|
||||
array('id'=>$this->get_course()->id)),
|
||||
$gradinginfo->items[0]->grades[$userid]->str_grade);
|
||||
} else {
|
||||
$grade = $gradinginfo->items[0]->grades[$userid]->str_grade;
|
||||
$gradestring = $gradinginfo->items[0]->grades[$userid]->str_grade;
|
||||
}
|
||||
$mform->addElement('static', 'finalgrade', get_string('currentgrade', 'assign').':' ,$grade);
|
||||
$mform->addElement('static', 'finalgrade', get_string('currentgrade', 'assign').':', $gradestring);
|
||||
|
||||
|
||||
$mform->addElement('static', 'progress', '', get_string('gradingstudentprogress', 'assign', array('index'=>$rownum+1, 'count'=>count($useridlist))));
|
||||
|
||||
Reference in New Issue
Block a user