mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 22:15:24 +02:00
MDL-46824 core_grades: Only display 'Drop n lowest' when supported
Part of: MDL-46576
This commit is contained in:
parent
6dab372c89
commit
ded8ea8fd1
@ -1805,10 +1805,10 @@ class grade_category extends grade_object {
|
||||
$aggrstrings = grade_helper::get_aggregation_strings();
|
||||
$allhelp[] = $aggrstrings[$this->aggregation];
|
||||
|
||||
if ($this->droplow) {
|
||||
if ($this->droplow && $this->can_apply_limit_rules()) {
|
||||
$allhelp[] = get_string('droplowestvalues', 'grades', $this->droplow);
|
||||
}
|
||||
if ($this->keephigh) {
|
||||
if ($this->keephigh && $this->can_apply_limit_rules()) {
|
||||
$allhelp[] = get_string('keephighestvalues', 'grades', $this->keephigh);
|
||||
}
|
||||
if (!$this->aggregateonlygraded) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user