fixed recent regression + simplified code a bit
[moodle.git] / mod / assignment / type / online / assignment.class.php
index 3d68d3b..7fee30b 100644 (file)
@@ -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