MDL-50344 restore: Make restore file required
This commit is contained in:
@@ -30,6 +30,7 @@ class course_restore_form extends moodleform {
|
||||
$mform->addElement('hidden', 'contextid', $contextid);
|
||||
$mform->setType('contextid', PARAM_INT);
|
||||
$mform->addElement('filepicker', 'backupfile', get_string('files'));
|
||||
$mform->addRule('backupfile', get_string('required'), 'required');
|
||||
$submit_string = get_string('restore');
|
||||
$this->add_action_buttons(false, $submit_string);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user