Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
4f110020
Commit
4f110020
authored
Oct 05, 2016
by
Dan Poltawski
Browse files
Merge branch 'MDL-54802-master-fix' of
git://github.com/cameron1729/moodle
parents
f3da9c49
26cb467b
Changes
1
Hide whitespace changes
Inline
Side-by-side
mod/quiz/mod_form.php
View file @
4f110020
...
...
@@ -534,9 +534,9 @@ class mod_quiz_mod_form extends moodleform_mod {
}
if
(
array_key_exists
(
'completion'
,
$data
)
&&
$data
[
'completion'
]
==
COMPLETION_TRACKING_AUTOMATIC
)
{
// Show an error if require passing grade was selected and the grade to pass was set
ted
to 0.
// Show an error if require passing grade was selected and the grade to pass was set to 0.
if
(
$data
[
'completionpass'
]
==
1
&&
(
empty
(
$data
[
'gradepass'
])
||
grade_floatval
(
$data
[
'gradepass'
])
==
0
))
{
$errors
[
'
gradepass
'
]
=
get_string
(
'gradetopassnotset'
,
'quiz'
);
$errors
[
'
completionpassgroup
'
]
=
get_string
(
'gradetopassnotset'
,
'quiz'
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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