fixed recent regression + simplified code a bit

This commit is contained in:
Petr Skoda
2010-06-28 13:15:03 +00:00
parent f8ffb97e3c
commit 1628ba8bbe
@@ -440,7 +440,7 @@ class mod_assignment_online_edit_form extends moodleform {
$mform->addElement('hidden', 'id');
$mform->setType('id', PARAM_INT);
$mform->addElement('hidden', 'edit', 1);
$mform->addElement('hidden', 'edit');
$mform->setType('edit', PARAM_INT);
// buttons