Commit f98b5fde authored by Astor Bizard's avatar Astor Bizard
Browse files

Fixed web submission if keeping required file.

parent 70325081
......@@ -87,6 +87,8 @@ class mod_vpl_submission_form extends moodleform {
$mform->addElement( 'radio', $field . 'action', '',
get_string( 'replacefile', VPL ), 'replace' );
$mform->disabledIf( $field . 'action', 'submitmethod', 'neq', 'files' );
$mform->addElement( 'hidden', $field . 'name', $reqfile );
$mform->setType( $field . 'name', PARAM_RAW );
}
$mform->addElement( 'filepicker', $field );
$mform->disabledIf( $field, 'submitmethod', 'neq', 'files' );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment