Skip to content

Commit

Permalink
MDL-40009 notes: corrected the form element names passed to setType
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjnelson committed Jun 4, 2013
1 parent ae61eea commit 118242b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notes/edit_form.php
Expand Up @@ -24,10 +24,10 @@ function definition() {
$this->add_action_buttons(); $this->add_action_buttons();


$mform->addElement('hidden', 'courseid'); $mform->addElement('hidden', 'courseid');
$mform->setType('course', PARAM_INT); $mform->setType('courseid', PARAM_INT);


$mform->addElement('hidden', 'userid'); $mform->addElement('hidden', 'userid');
$mform->setType('user', PARAM_INT); $mform->setType('userid', PARAM_INT);


$mform->addElement('hidden', 'id'); $mform->addElement('hidden', 'id');
$mform->setType('id', PARAM_INT); $mform->setType('id', PARAM_INT);
Expand Down

0 comments on commit 118242b

Please sign in to comment.