MDL-16164 improved use of forms in notes code and some other minor cleanup
This commit is contained in:
+4
-4
@@ -21,14 +21,14 @@ class note_edit_form extends moodleform {
|
||||
|
||||
$this->add_action_buttons();
|
||||
|
||||
$mform->addElement('hidden', 'course');
|
||||
$mform->addElement('hidden', 'courseid');
|
||||
$mform->setType('course', PARAM_INT);
|
||||
|
||||
$mform->addElement('hidden', 'user');
|
||||
$mform->addElement('hidden', 'userid');
|
||||
$mform->setType('user', PARAM_INT);
|
||||
|
||||
$mform->addElement('hidden', 'note');
|
||||
$mform->setType('note', PARAM_INT);
|
||||
$mform->addElement('hidden', 'id');
|
||||
$mform->setType('id', PARAM_INT);
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user