Skip to content
Permalink
Browse files

MDL-52133 mod_assign: Pass userid param when saving grade

  • Loading branch information...
Michael de Raadt
Michael de Raadt committed Mar 9, 2016
1 parent fba7a51 commit 99a895b7c3f9337b68f6b2add2377429fde734de
Showing with 2 additions and 0 deletions.
  1. +2 −0 mod/assign/locallib.php
@@ -6270,6 +6270,8 @@ public function add_grade_form_elements(MoodleQuickForm $mform, stdClass $data,
// Hidden params.
$mform->addElement('hidden', 'id', $this->get_course_module()->id);
$mform->setType('id', PARAM_INT);
$mform->addElement('hidden', 'userid', $userid);
$mform->setType('userid', PARAM_INT);
$mform->addElement('hidden', 'rownum', $rownum);
$mform->setType('rownum', PARAM_INT);
$mform->setConstant('rownum', $rownum);

0 comments on commit 99a895b

Please sign in to comment.
You can’t perform that action at this time.