Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
caseine
moodle-mod_vpl
Commits
f98b5fde
Commit
f98b5fde
authored
Mar 11, 2021
by
Astor Bizard
Browse files
Fixed web submission if keeping required file.
parent
70325081
Changes
1
Show whitespace changes
Inline
Side-by-side
forms/submission_form.php
View file @
f98b5fde
...
...
@@ -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'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment