fixed recent regression + simplified code a bit
authorPetr Skoda <skodak@moodle.org>
Mon, 28 Jun 2010 13:15:03 +0000 (13:15 +0000)
committerPetr Skoda <skodak@moodle.org>
Mon, 28 Jun 2010 13:15:03 +0000 (13:15 +0000)
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', 'id');
         $mform->setType('id', PARAM_INT);
 
-        $mform->addElement('hidden', 'edit', 1);
+        $mform->addElement('hidden', 'edit');
         $mform->setType('edit', PARAM_INT);
 
         // buttons
         $mform->setType('edit', PARAM_INT);
 
         // buttons