MDL-34311 course: prevent course edit form warnings
authorDan Poltawski <dan@moodle.com>
Fri, 22 Mar 2013 08:40:30 +0000 (16:40 +0800)
committerDan Poltawski <dan@moodle.com>
Mon, 25 Mar 2013 01:30:51 +0000 (09:30 +0800)
There is a placeholder element.

course/edit_form.php

index 8f7e875..afd3d1a 100644 (file)
@@ -190,7 +190,9 @@ class course_edit_form extends moodleform {
         }
 
 //--------------------------------------------------------------------------------
         }
 
 //--------------------------------------------------------------------------------
+        // Just a placeholder..
         $mform->addElement('hidden', 'addcourseformatoptionshere');
         $mform->addElement('hidden', 'addcourseformatoptionshere');
+        $mform->setType('addcourseformatoptionshere', PARAM_BOOL);
 
 //--------------------------------------------------------------------------------
         enrol_course_edit_form($mform, $course, $context);
 
 //--------------------------------------------------------------------------------
         enrol_course_edit_form($mform, $course, $context);