MDL-47243 core_grades: Allow extra credit on outcome grade items
authorJohn Okely <john@moodle.com>
Thu, 9 Oct 2014 01:23:05 +0000 (09:23 +0800)
committerJohn Okely <john@moodle.com>
Wed, 15 Oct 2014 06:33:31 +0000 (14:33 +0800)
grade/edit/tree/outcomeitem_form.php

index 5707e21..9428e5b 100644 (file)
@@ -202,7 +202,7 @@ class edit_outcomeitem_form extends moodleform {
 
                 $parent_category->apply_forced_settings();
 
-                if (!$parent_category->is_aggregationcoef_used() or $parent_category->aggregation == GRADE_AGGREGATE_SUM) {
+                if (!$parent_category->is_aggregationcoef_used()) {
                     if ($mform->elementExists('aggregationcoef')) {
                         $mform->removeElement('aggregationcoef');
                     }