MDL-29542 lesson module: changing qtype param type to INT
authorRossiani Wijaya <rwijaya@moodle.com>
Fri, 21 Oct 2011 04:38:29 +0000 (12:38 +0800)
committerRossiani Wijaya <rwijaya@moodle.com>
Fri, 21 Oct 2011 04:38:29 +0000 (12:38 +0800)
mod/lesson/locallib.php

index 8b73da0..0925fa0 100644 (file)
@@ -723,7 +723,7 @@ abstract class lesson_add_page_form_base extends moodleform {
 
         if ($this->standard === true) {
             $mform->addElement('hidden', 'qtype');
-            $mform->setType('qtype', PARAM_PLUGIN);
+            $mform->setType('qtype', PARAM_INT);
 
             $mform->addElement('text', 'title', get_string('pagetitle', 'lesson'), array('size'=>70));
             $mform->setType('title', PARAM_TEXT);