Revert "MDL-52133 mod_assign: Pass userid param when saving grade"
authorDan Poltawski <dan@moodle.com>
Thu, 17 Mar 2016 01:31:08 +0000 (09:31 +0800)
committerDan Poltawski <dan@moodle.com>
Thu, 17 Mar 2016 01:31:08 +0000 (09:31 +0800)
mod/assign/locallib.php

index 6c81714..ad93008 100644 (file)
@@ -6325,8 +6325,6 @@ class assign {
         // 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);