Skip to content

Commit

Permalink
MDL-50344 restore: Make restore file required
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitagarwal committed May 25, 2015
1 parent 803f565 commit f987afb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backup/restorefile_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ function definition() {
$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);
}
Expand Down

0 comments on commit f987afb

Please sign in to comment.