diff --git a/mod/wiki/create_form.php b/mod/wiki/create_form.php index 3553f45c443..422b6e678ea 100644 --- a/mod/wiki/create_form.php +++ b/mod/wiki/create_form.php @@ -60,9 +60,9 @@ class mod_wiki_create_form extends moodleform { } $mform->addElement('radio', 'pageformat', '', get_string('format'.$format, 'wiki'), $format, $attr); } + $mform->addRule('pageformat', get_string('required'), 'required', null, 'client'); } $mform->setType('pageformat', PARAM_ALPHANUMEXT); - $mform->addRule('pageformat', get_string('required'), 'required', null, 'client'); if (!empty($this->_customdata['groups']->availablegroups)) { foreach ($this->_customdata['groups']->availablegroups as $groupdata) {