Skip to content

Commit

Permalink
MDL-34311 course: prevent course edit form warnings
Browse files Browse the repository at this point in the history
There is a placeholder element.
  • Loading branch information
danpoltawski committed Mar 25, 2013
1 parent b45ba7f commit e994754
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions course/edit_form.php
Expand Up @@ -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);
Expand Down

0 comments on commit e994754

Please sign in to comment.