mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-50612 grades: do not remove grade box if gradepass field exists
This commit is contained in:
parent
9325cd963f
commit
7dc5dac678
@ -172,7 +172,7 @@ abstract class moodleform_mod extends moodleform {
|
||||
// TODO: add a "Mixed categories" text instead of removing elements with no explanation
|
||||
if ($mform->elementExists('gradecat')) {
|
||||
$mform->removeElement('gradecat');
|
||||
if ($this->_features->rating) {
|
||||
if ($this->_features->rating && !$mform->elementExists('gradepass')) {
|
||||
//if supports ratings then the max grade dropdown wasnt added so the grade box can be removed entirely
|
||||
$mform->removeElement('modstandardgrade');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user