Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-34543 mod_assign Fixing problem where previous feedback does not …

…populate when you re-enter the grading view. add_plugin_grade_elements() was expecting grade object, but was being given grade string.
  • Loading branch information...
commit 4c60068485edc60fdb391f64ba020b33c7892ec0 1 parent 02814bf
merrill-oakland merrill-oakland authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 mod/assign/locallib.php
6 mod/assign/locallib.php
View
@@ -2923,13 +2923,13 @@ public function add_grade_form_elements(MoodleQuickForm $mform, stdClass $data,
}
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))));
Please sign in to comment.
Something went wrong with that request. Please try again.