Permalink
Browse files

MDL-34311 course: prevent course edit form warnings

There is a placeholder element.
  • Loading branch information...
1 parent b45ba7f commit e994754d3115c7ec696e594f0e531c8c7b9b5a40 @danpoltawski danpoltawski committed Mar 22, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 course/edit_form.php
View
@@ -190,7 +190,9 @@ function definition() {
}
//--------------------------------------------------------------------------------
+ // Just a placeholder..
$mform->addElement('hidden', 'addcourseformatoptionshere');
+ $mform->setType('addcourseformatoptionshere', PARAM_BOOL);
//--------------------------------------------------------------------------------
enrol_course_edit_form($mform, $course, $context);

0 comments on commit e994754

Please sign in to comment.